UAnimMontage::ExtractRootMotionFromTrackRange

Extract RootMotion Transform from a contiguous Track position range.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Animation/AnimMontage.h

Include

#include "Animation/AnimMontage.h"

Source

/Engine/Source/Runtime/Engine/Private/Animation/AnimMontage.cpp

Syntax

FTransform ExtractRootMotionFromTrackRange
(
    float StartTrackPosition,
    float EndTrackPosition
) const

Remarks

Extract RootMotion Transform from a contiguous Track position range. CONTIGUOUS* means that if playing forward StartTractPosition < EndTrackPosition. No wrapping over if looping. No jumping across different sections. So the AnimMontage has to break the update into contiguous pieces to handle those cases.

This does handle Montage playing backwards (StartTrackPosition > EndTrackPosition).

It will break down the range into steps if needed to handle looping animations, or different animations. These steps will be processed sequentially, and output the RootMotion transform in component space.

Extract RootMotion Transform from a contiguous Track position range. CONTIGUOUS means that if playing forward StartTractPosition < EndTrackPosition. No wrapping over if looping. No jumping across different sections. So the AnimMontage has to break the update into contiguous pieces to handle those cases.

This does handle Montage playing backwards (StartTrackPosition > EndTrackPosition).

It will break down the range into steps if needed to handle looping animations, or different animations. These steps will be processed sequentially, and output the RootMotion transform in component space.