UDistanceCurveModifier

Extracts traveling distance information from root motion and bakes it to a curve.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

AnimationLocomotionLibraryEditor

Header

/Engine/Plugins/Animation/AnimationLocomotionLibrary/Source/Editor/Public/DistanceCurveModifier.h

Include

#include "DistanceCurveModifier.h"

Syntax

UCLASS()
class UDistanceCurveModifier : public UAnimationModifier

Remarks

Extracts traveling distance information from root motion and bakes it to a curve. A negative value indicates distance remaining to a stop or pivot point. A positive value indicates distance traveled from a start point or from the beginning of the clip.

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

EDistanceCurve_...

 

Axis

Axes to calculate the distance value from.

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

bool

 

bStopAtEnd

Root motion is considered to be stopped at the clip's end

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

FName

 

CurveName

Name for the generated curve.

Public variable UProperty Category, EditAnywhere, Meta

int32

 

SampleRate

Rate used to sample the animation.

Public variable UProperty Category, EditAnywhere, Meta BlueprintReadWrite

float

 

StopSpeedThreshold

Root motion speed must be below this threshold to be considered stopped.

Overridden from UAnimationModifier

Name Description

Public function Virtual

void

 

OnApply_Implementation

(
    UAnimSequence* Animation
)

Public function Virtual

void

 

OnRevert_Implementation

(
    UAnimSequence* Animation
)