RigidbodyConstraints
Use these flags to constrain motion of Rigidbodies. Unity RigidbodyConstraints
Elements
Element | Description |
---|---|
RigidbodyConstraints.FreezeAll | Freeze rotation and motion along all axes. |
RigidbodyConstraints.FreezePosition | Freeze motion along all axes. |
RigidbodyConstraints.FreezePositionX | Freeze motion along the X-axis. |
RigidbodyConstraints.FreezePositionY | Freeze motion along the Y-axis. |
RigidbodyConstraints.FreezePositionZ | Freeze motion along the Z-axis. |
RigidbodyConstraints.FreezeRotation | Freeze rotation along all axes. |
RigidbodyConstraints.FreezeRotationX | Freeze rotation along the X-axis. |
RigidbodyConstraints.FreezeRotationY | Freeze rotation along the Y-axis. |
RigidbodyConstraints.FreezeRotationZ | Freeze rotation along the Z-axis. |
RigidbodyConstraints.None | No constraints. |