Skip to content

RigidbodyConstraints

The RigidbodyConstraints enumeration defines the constraints of a rigidbody, which can be used to restrict the movement of the rigidbody in the simulation.

attributesdescription
NoneApplies no constraints to the rigidbody, allowing it to move and rotate freely.
FreezePositionXFreezes the movement of the rigidbody along the X-axis, keeping it stationary on that axis.
FreezePositionYFreezes the movement of the rigidbody along the Y-axis, keeping it stationary on that axis.
FreezePositionZFreezes the movement of the rigidbody along the Z-axis, keeping it stationary on that axis.
FreezePositionFreezes the movement of the Rigidbody on all axes, keeping it stationary.
FreezeRotationXFreezes the rotation around the X-axis of the rigidbody, keeping it stationary along that axis.
FreezeRotationYFreezes the rotation around the Y-axis of the rigidbody, keeping it stationary along that axis.
FreezeRotationZFreezes the rotation around the Z-axis of the rigidbody, keeping it stationary along that axis.
FreezeRotationFreezes all rotations of the rigidbody, keeping it stationary.
FreezeAllFreezes the movement and rotation of the rigidbody on all axes, keeping it completely still.