Navigation
API > API/Plugins > API/Plugins/Mover > API/Plugins/Mover/UMovementUtils
Description
Attempts to move a component along a surface. Returns the percent of time applied, with 0.0 meaning no movement occurred. Note: This function takes a movement record that collects moves applied to the actor see @FMovementRecord
| Name | TryMoveToSlideAlongSurface |
| Type | function |
| Header File | /Engine/Plugins/Experimental/Mover/Source/Mover/Public/MoveLibrary/MovementUtils.h |
| Include Path | #include "MoveLibrary/MovementUtils.h" |
| Source | /Engine/Plugins/Experimental/Mover/Source/Mover/Private/MoveLibrary/MovementUtils.cpp |
UFUNCTION (BlueprintCallable, Category=Mover,
Meta=(DisplayName="Try Move To Slide Along Surface (Movement Record)"))
static float TryMoveToSlideAlongSurface
(
const FMovingComponentSet & MovingComps,
const FVector & Delta,
float PctOfDeltaToMove,
const FQuat Rotation,
const FVector & Normal,
FHitResult & Hit,
bool bHandleImpact,
FMovementRecord & MoveRecord
)