Click or drag to resize
Ab4d.SharpEngine logo

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.Cameras
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
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