Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/MovementComponent.h |
Include |
#include "GameFramework/MovementComponent.h" |
enum EPlaneConstraintAxisSetting
{
Custom,
X,
Y,
Z,
UseGlobalPhysicsSetting,
}
Name |
Description |
---|---|
Custom |
Lock movement to a user-defined axis. |
X |
Lock movement in the X axis. |
Y |
Lock movement in the Y axis. |
Z |
Lock movement in the Z axis. |
UseGlobalPhysicsSetting |
Use the global physics project setting. |
Setting that controls behavior when movement is restricted to a 2D plane defined by a specific axis/normal, so that movement along the locked axis is not be possible.