Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/MoveLibrary > API/Plugins/Mover/MoveLibrary/UMovementUtils
References
| Module | Mover |
| Header | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/MoveLibrary/MovementUtils.h |
| Include | #include "MoveLibrary/MovementUtils.h" |
| Source | /Engine/Plugins/Experimental/Mover/Source/Mover/Private/MoveLibrary/MovementUtils.cpp |
UFUNCTION (BlueprintCallable, Category=Mover)
static FVector ConstrainToPlane
(
const FVector & Vector,
const FPlane & MovementPlane,
bool bMaintainMagnitude
)
Remarks
Ensures input Vector (typically a velocity, acceleration, or move delta) is limited to a movement plane.
Parameters
| Name | Description |
|---|---|
| bMaintainMagnitude | if true, vector will be scaled after projection in an attempt to keep magnitude the same |