Click or drag to resize
Ab4d.SharpEngine logo

FreeCameraRotateCamera(Single, Single) Method

Rotates the free camera for the specified heading and attitude. When RotationCenterPosition is set, the camera rotates around RotationCenterPosition which changes the TargetPosition and CameraPosition.

Namespace: Ab4d.SharpEngine.Cameras
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public override void RotateCamera(
	float headingChange,
	float attitudeChange
)

Parameters

headingChange  Single
heading change in degrees
attitudeChange  Single
attitude change in degrees

Implements

ICameraRotateCamera(Single, Single)
Remarks

Rotates the free camera for the specified heading and attitude.

When RotationCenterPosition is set, the camera rotates around RotationCenterPosition which changes the TargetPosition and CameraPosition.

headingChange defines the angle of rotation around camera's UpDirection or camera's RotationUpAxis (when set).

attitudeChange defines the angle of rotation around the right direction vector (vector perpendicular to up vector and look direction).

To also rotate with using bank change, use the RotateCamera(Single, Single, Single) method.

See Also