Navigation
API > API/Plugins > API/Plugins/AnimationModifierLibrary > API/Plugins/AnimationModifierLibrary/UMotionExtractorUtilityLibrary
References
| Module | AnimationModifierLibrary |
| Header | /Engine/Plugins/Animation/AnimationModifierLibrary/Source/AnimationModifierLibrary/Public/MotionExtractorUtilities.h |
| Include | #include "MotionExtractorUtilities.h" |
| Source | /Engine/Plugins/Animation/AnimationModifierLibrary/Source/AnimationModifierLibrary/Private/MotionExtractorUtilities.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"Motion Extractor Utility"&41;
static TArray< FVector2D > GetMovingRangesFromRootMotion
&40;
const UAnimSequence &42; AnimSequence,
float StopSpeedThreshold,
float SampleRate
&41;
Remarks
Returns the ranges (X/Start to Y/End) in the specified animation sequence where the animation is considered moving.
Parameters
| Name | Description |
|---|---|
| AnimSequence | Anim sequence to check |
| StopSpeedThreshold | Root motion speed over which the animation is considered moving. |
| SampleRate | Sample rate of the animation. It's recommended to use high values if the animation has very sudden direction changes. |