CameraStart |
public void StartRotation( float headingChangeInSecond, float attitudeChangeInSecond = 0f )
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.