Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/UAirMovementUtils
Description
Tests potential movement of a component falling/sliding along a surface, while checking for landing on a walkable surface. Intended for use while falling. Modifies InOutHit with final movement hit data Sets OutFloorResult with any found walkable surface info Appends to InOutMoveRecord with any movement substeps Returns the percent of time applied, with 0.0 meaning no movement would occur.
| Name | TestFallingMoveAlongHitSurface |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/MoveLibrary/AirMovementUtils.h |
| Include Path | #include "MoveLibrary/AirMovementUtils.h" |
| Source | /Engine/Plugins/Experimental/Mover/Source/Mover/Private/MoveLibrary/AirMovementUtils.cpp |
UFUNCTION (BlueprintCallable, Category=Mover)
static float TestFallingMoveAlongHitSurface
(
const FMovingComponentSet & MovingComps,
const FVector & OriginalMoveDelta,
const FVector & LocationAtHit,
const FQuat & TargetRotation,
bool bHandleImpact,
float FloorSweepDistance,
float MaxWalkSlopeCosine,
bool bUseFlatBaseForFloorChecks,
FHitResult & InOutHit,
FFloorCheckResult & OutFloorResult,
FMovementRecord & InOutMoveRecord
)