csharp
public enum BodyDegreesOfFreedomWhich axes a body is allowed to move and turn about.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A 2D game is Plane2D; an upright character that must not topple is Translation with the rotations left out. Locking a degree of freedom here rather than by zeroing velocity every step means the solver never generates the motion in the first place, so a stack of constrained bodies does not fight itself.
Fields and properties (11)
NoneNothing. The body cannot move at all, though it is still solved against.
TranslationXMay move along X.
TranslationYMay move along Y.
TranslationZMay move along Z.
RotationXMay turn about X.
RotationYMay turn about Y.
RotationZMay turn about Z.
TranslationMay move along any axis.
RotationMay turn about any axis.
AllEverything. The default.
Plane2DThe X–Y plane, turning only about Z. What a 2D game wants.
Used by (7)
- BodyDescriptionVixen.Physics
- PhysicsSceneVixen.Physics
- PhysicsWorldVixen.Physics
- PhysicsWorldTestsVixen.Physics.Tests
- RigidBodyVixen.Physics
- Vixen_Physics_Bodies_BodyDescriptionSerializerVixen.Physics
- Vixen_Physics_Ecs_RigidBodySerializerVixen.Physics