 |
MouseCameraControllerCameraZoomSmoothingDelegate Delegate |
Represents a delegate that defines a custom smoothing function for camera zooming. It can be set by calling the SetAdvancedSmoothSettings method.
Namespace: Ab3d.ControlsAssembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 12.0.9484.2048
Syntaxpublic delegate void CameraZoomSmoothingDelegate(
double targetDistance,
double targetCameraWidth,
double elapsedTime,
ref double newDistance,
ref double newCameraWidth
)
Parameters
- targetDistance Double
- The camera Distance that would be used when no smoothing would be used.
- targetCameraWidth Double
- The CameraWidth that would be used when no smoothing would be used.
- elapsedTime Double
- Elapsed time in seconds between this and previous call to this delegate.
- newDistance Double
- The calculated new Distance after applying smoothing for this step. This value is passed by ref and can be changed by the subscribed method.
- newCameraWidth Double
- The calculated new CameraWidth after applying smoothing for this step. This value is passed by ref and can be changed by the subscribed method.
See Also