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: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
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