Click or drag to resize
AB4D logo

FreeCameraRotateCamera(Double, Double, Double, Int32, FuncDouble, Double, FreeCameraAnimationNodeFreeCameraAnimationTypes) Method

Rotates the free camera for the specified heading, attitude and bank. When RotationCenterPosition is set, the camera rotates around RotationCenterPosition which changes the TargetPosition and CameraPosition. When animationDurationInMilliseconds parameter is bigger then 0, then rotation is animated.

Namespace: Ab3d.Cameras
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public virtual void RotateCamera(
	double headingChange,
	double attitudeChange,
	double bankChange,
	int animationDurationInMilliseconds,
	Func<double, double> easingFunction = null,
	FreeCameraAnimationNodeFreeCameraAnimationTypes animationType = FreeCameraAnimationNodeFreeCameraAnimationTypes.SphericalInterpolation
)

Parameters

headingChange  Double
heading change in degrees
attitudeChange  Double
attitude change in degrees
bankChange  Double
bank change in degrees
animationDurationInMilliseconds  Int32
duration of animation in milliseconds (when 0, then rotation is not animated)
easingFunction  FuncDouble, Double  (Optional)
easing function (see Ab3d.Animation.EasingFunctions for different easing functions). When null linear interpolation is used.
animationType  FreeCameraAnimationNodeFreeCameraAnimationTypes  (Optional)
type of animation interpolation (when not specified, then SphericalInterpolation is used).
Remarks

Rotates the free camera for the specified heading, attitude and bank.

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

When animationDurationInMilliseconds parameter is bigger then 0, then rotation is animated.

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).

bankChange defines the angle of rotation around camera's look direction.

See Also