文档

Unity Engine

Unity Engine

PhysicsBody.BodyConstraints

Body constrains constrain the degrees of freedom a body when solving the simulation.
阅读时间1 分钟最后更新于 1 个月前

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.