Click or drag to resize
Ab4d.SharpEngine logo

TargetPositionCameraRotateFor 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.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
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