Click or drag to resize
AB4D logo

FreeCameraRotateCamera(Double, Double) 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: Ab3d.Cameras
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.2.9104.2045
Syntax
C#
public override void RotateCamera(
	double headingChange,
	double attitudeChange
)

Parameters

headingChange  Double
heading change in degrees
attitudeChange  Double
attitude change in degrees
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(Double, Double, Double) method.

See Also