 |
CameraControllerCameraZoomSmoothingDelegate Delegate |
Represents a delegate that defines a custom smoothing function for camera zooming. It can be set by calling the SetAdvancedSmoothSettings method.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic delegate void CameraZoomSmoothingDelegate(
float targetDistance,
float targetCameraWidth,
float elapsedTime,
ref float newDistance,
ref float newCameraWidth
)
Parameters
- targetDistance Single
- The camera Distance that would be used when no smoothing would be used.
- targetCameraWidth Single
- The CameraWidth that would be used when no smoothing would be used.
- elapsedTime Single
- Elapsed time in seconds between this and previous call to this delegate.
- newDistance Single
- 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 Single
- 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