 |
CameraControllerCameraMovementSmoothingDelegate Delegate |
Represents a delegate that defines a custom smoothing function for camera movement. It can be set by calling the SetAdvancedSmoothSettings method.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic delegate void CameraMovementSmoothingDelegate(
Vector2 targetPointerMoveVector,
float elapsedTime,
ref Vector2 newPointerMoveVector
)
Parameters
- targetPointerMoveVector Vector2
- The pointer move vector that would be used when no smoothing would be used.
- elapsedTime Single
- Elapsed time in seconds between this and previous call to this delegate.
- newPointerMoveVector Vector2
- The calculated new pointer move vector after applying the smoothing function. This value is passed by ref and can be changed by the subscribed method.
See Also