Navigation
Unreal Engine C++ API Reference > Runtime > Engine > PhysicsEngine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/PhysicsEngine/BodyInstance.h |
Include | #include "PhysicsEngine/BodyInstance.h" |
Syntax
namespace EDOFMode
{
enum Type
&123;
Default,
SixDOF,
YZPlane,
XZPlane,
XYPlane,
CustomPlane,
None,
&125;
}
Values
Name | Description |
---|---|
Default | Inherits the degrees of freedom from the project settings. |
SixDOF | Specifies which axis to freeze rotation and movement along. |
YZPlane | Allows 2D movement along the Y-Z plane. |
XZPlane | Allows 2D movement along the X-Z plane. |
XYPlane | Allows 2D movement along the X-Y plane. |
CustomPlane | Allows 2D movement along the plane of a given normal |
None | No constraints. |