Navigation
API > API/Plugins > API/Plugins/AnimationLocomotionLibraryRuntim- > API/Plugins/AnimationLocomotionLibraryRuntim-/UAnimCharacterMovementLibrary
Description
Predict where the character will change direction during a pivot based on its current movement properties and parameters from the movement component. This uses prediction logic that is heavily tied to the UCharacterMovementComponent. Each parameter corresponds to a value from the UCharacterMovementComponent with the same name. Because this is a thread safe function, it's recommended to populate these fields via the Property Access system.
| Name | PredictGroundMovementPivotLocation |
| Type | function |
| Header File | /Engine/Plugins/Animation/AnimationLocomotionLibrary/Source/Runtime/Public/AnimCharacterMovementLibrary.h |
| Include Path | #include "AnimCharacterMovementLibrary.h" |
| Source | /Engine/Plugins/Animation/AnimationLocomotionLibrary/Source/Runtime/Private/AnimCharacterMovementLibrary.cpp |
UFUNCTION (BlueprintPure, Category="Animation Character Movement", Meta=(BlueprintThreadSafe))
static FVector PredictGroundMovementPivotLocation
(
const FVector & Acceleration,
const FVector & Velocity,
float GroundFriction
)
The predicted pivot position in local space to the character. The size of this vector will be the distance to the pivot.