Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsBody.BodyConstraints

Body constrains constrain the degrees of freedom a body when solving the simulation.
Read time 1 minuteLast updated 11 days ago

Definition

[Flags]public enum PhysicsBody.BodyConstraints

Fields

Value

Description

AllConstrain rotation and motion along all axes.
NoneNo constraints
PositionConstrain motion along all axes.
PositionXConstrain motion along the X-axis.
PositionYConstrain motion along the Y-axis.
RotationConstrain rotation along the Z-axis.