Skip to main content

RigidbodyConstraints

Use these flags to constrain motion of Rigidbodies. Unity RigidbodyConstraints

Elements

ElementDescription
RigidbodyConstraints.FreezeAllFreeze rotation and motion along all axes.
RigidbodyConstraints.FreezePositionFreeze motion along all axes.
RigidbodyConstraints.FreezePositionXFreeze motion along the X-axis.
RigidbodyConstraints.FreezePositionYFreeze motion along the Y-axis.
RigidbodyConstraints.FreezePositionZFreeze motion along the Z-axis.
RigidbodyConstraints.FreezeRotationFreeze rotation along all axes.
RigidbodyConstraints.FreezeRotationXFreeze rotation along the X-axis.
RigidbodyConstraints.FreezeRotationYFreeze rotation along the Y-axis.
RigidbodyConstraints.FreezeRotationZFreeze rotation along the Z-axis.
RigidbodyConstraints.NoneNo constraints.