Click or drag to resize
Ab4d.SharpEngine logo

IRotationCenterPositionCameraRotationCenterPosition Property

Gets or sets a nullable Vector3 that can specify a custom 3D position around which this TargetPositionCamera is rotated. Rotation around custom center position changes the camera angles (Heading and Attitude) and also TargetPosition. When RotationCenterPosition is null, the rotation is done with changing only Heading and Attitude properties.

Namespace: Ab4d.SharpEngine.Cameras
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
Vector3? RotationCenterPosition { get; set; }

Property Value

NullableVector3
Remarks

RotationCenterPosition gets or sets a nullable Vector3 that can specify a custom 3D position around which this TargetPositionCamera is rotated.

Rotation around custom center position changes the camera angles (Heading and Attitude) and also TargetPosition.

When RotationCenterPosition is null, the rotation is done with changing only Heading and Attitude properties. In this case that the scene is rotated around TargetPosition which is shown at the center of Viewport3D.

The difference between RotationCenterPosition and TargetPosition is that TargetPosition is a 3D position that the camera is looking at and is always in the center of the view.

See Also