Click or drag to resize
Ab4d.SharpEngine logo

CameraStartRotation(Single, Single) Method

StartRotation method immediately starts Heading and Attitude animation for this camera. To slowly start the camera rotation and than accelerate the rotation, use the StartRotation(Single, Single, Single, FuncSingle, Single) method.

Namespace: Ab4d.SharpEngine.Cameras
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public void StartRotation(
	float headingChangeInSecond,
	float attitudeChangeInSecond = 0f
)

Parameters

headingChangeInSecond  Single
How many degrees the heading will be changed in one second
attitudeChangeInSecond  Single  (Optional)
How many degrees the attitude will be changed in one second (0 by default)

Implements

IRotatingCameraStartRotation(Single, Single)
Remarks

StartRotation method immediately starts Heading and Attitude animation for this camera.

To slowly start the camera rotation and than accelerate the rotation, use the StartRotation(Single, Single, Single, FuncSingle, Single) method.

The animation can be stopped by StopRotation or StopRotation(Single, FuncSingle, Single) methods.

To check if the camera is currently being rotated, see the value of the IsRotating property. Note that after calling StopRotation(Single, FuncSingle, Single) method and specifying the decelerationSpeed, the IsRotating is still true until the camera rotation is stopped.

When StartRotation is called when the rotation is already animated, StopRotation will be called and than the animation will start again.

When the camera is controller by a CameraController, the CameraController can suspend animation when user is controlling the camera. After the user stops controlling the camera the animation can be resumes.

See Also