RotationCenter
Name
RotationCenter
Type
Read/Write
When to use it
You can set the value of this property before calling Start method.
You may get the value of this property anytime.
Prototype
property RotationCenter: long;
Explanations
Specify how the rotation of parts is made.
0 - means custom rotation.
The origin of rotation is set by the parameters RotationCenterX and RotationCenterY of the SetPart method.
1 - center of mass is used as the origin point for rotation.
Center is computed as (max + min) / 2. The parameters RotationCenterX and RotationCenterY of the SetPart method are ignored.
Default value
1
Remarks
If the part is a circle, the RotationCenter is ignored and no rotation is performed.
See also: