Click or drag to resize
DigitalRuneRigidBodyLockRotationZ Property
Gets or sets a value indicating whether the body can rotate around its local mass frame z-axis.

Namespace: DigitalRune.Physics
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public bool LockRotationZ { get; set; }

Property Value

Type: Boolean
if rotations around the local z-axis (of the mass frame) are locked; otherwise, . The default value is .
Remarks

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.

See Also