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: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
Vector3? RotationCenterPosition { get; set; }

Property Value

NullableVector3

[Missing <value> documentation for "P:Ab4d.SharpEngine.Cameras.IRotationCenterPositionCamera.RotationCenterPosition"]

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