|
FirstPersonCameraRotateFor Method |
Animates the camera rotation with changing the Camera's Heading and Attitude for the specified amount. The animation takes animationDurationInMilliseconds and uses easingFunction.
Namespace: Ab4d.SharpEngine.CamerasAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public void RotateFor(
float changedHeading,
float changedAttitude,
int animationDurationInMilliseconds = 0,
Func<float, float>? easingFunction = null
)
Parameters
- changedHeading Single
- Camera's Heading change
- changedAttitude Single
- Camera's Attitude change
- animationDurationInMilliseconds Int32 (Optional)
- duration of animation in milliseconds
- easingFunction FuncSingle, Single (Optional)
- easing function (see Ab4d.SharpEngine.Common.EasingFunctions for different easing functions). When null linear interpolation is used.
See Also