Navigation
API > API/Plugins > API/Plugins/AnimationLocomotionLibraryRuntim-
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UAnimDistanceMatchingLibrary
References
| Module | AnimationLocomotionLibraryRuntime |
| Header | /Engine/Plugins/Animation/AnimationLocomotionLibrary/Source/Runtime/Public/AnimDistanceMatchingLibrary.h |
| Include | #include "AnimDistanceMatchingLibrary.h" |
Syntax
UCLASS&40;&41;
class UAnimDistanceMatchingLibrary : public UBlueprintFunctionLibrary
Remarks
Library of techniques for driving animations by distance metrics rather than by time. These techniques can be effective at compensating for differences between character movement and authored motion in the animations. Distance Matching effectively changes the play rate of the animation to keep the feet from sliding. It's common to clamp the resulting play rate to avoid animations playing too slow or too fast and to use techniques such as Stride Warping to make up the difference.
Functions
| Type | Name | Description | |
|---|---|---|---|
| FSequenceEvaluatorReference | AdvanceTimeByDistanceMatching
(
const FAnimUpdateContext& UpdateContext, |
Advance the sequence evaluator forward by distance traveled rather than time. | |
| FSequenceEvaluatorReference | DistanceMatchToTarget
(
const FSequenceEvaluatorReference& SequenceEvaluator, |
Set the time of the sequence evaluator to the point in the animation where the distance curve matches the DistanceToTarget input. | |
| FSequencePlayerReference | SetPlayrateToMatchSpeed
(
const FSequencePlayerReference& SequencePlayer, |
Set the play rate of the sequence player so that the speed of the animation matches in-game movement speed. |