Navigation
API > API/Plugins > API/Plugins/AnimationLocomotionLibraryRuntim- > API/Plugins/AnimationLocomotionLibraryRuntim-/UAnimDistanceMatchingLibrary
References
| Module | AnimationLocomotionLibraryRuntime |
| Header | /Engine/Plugins/Animation/AnimationLocomotionLibrary/Source/Runtime/Public/AnimDistanceMatchingLibrary.h |
| Include | #include "AnimDistanceMatchingLibrary.h" |
| Source | /Engine/Plugins/Animation/AnimationLocomotionLibrary/Source/Runtime/Private/AnimDistanceMatchingLibrary.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"Distance Matching", Meta&61;&40;BlueprintThreadSafe&41;&41;
static FSequenceEvaluatorReference AdvanceTimeByDistanceMatching
&40;
const FAnimUpdateContext & UpdateContext,
const FSequenceEvaluatorReference & SequenceEvaluator,
float DistanceTraveled,
FName DistanceCurveName,
FVector2D PlayRateClamp
&41;
Remarks
Advance the sequence evaluator forward by distance traveled rather than time. A distance curve is required on the animation that describes the distance traveled by the root bone in the animation. See UDistanceCurveModifier.
Parameters
| Name | Description |
|---|---|
| UpdateContext | The update context provided in the anim node function. |
| SequenceEvaluator | The sequence evaluator node to operate on. |
| DistanceTraveled | The distance traveled by the character since the last animation update. |
| DistanceCurveName | Name of the curve we want to match |
| PlayRateClamp | A clamp on the effective play rate of the animation after distance matching. Set to (0,0) for no clamping. |