RigidBodyLockRotationZ Property |
Namespace: DigitalRune.Physics
If this flag is set, forces and collision impacts will not rotate the body around the locked axis. The body can still be rotated by setting an angular velocity or by changing the Pose (PoseCenterOfMass) of the body directly.
The lock axis refers to an axis of the MassFrame. If MassFrame.Pose does not contain a rotation, the lock axis is equal to the local coordinate axis of the body. If MassFrame.Pose contains a rotation, the lock axis is not identical to the local space axis of the body. In other words: The lock axes are the local axes of the PoseCenterOfMass and not the local axes of the Pose of this body.