FRootMotionMovementParams

Utility struct to accumulate root motion.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

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

Include

#include "Animation/AnimationAsset.h"

Syntax

struct FRootMotionMovementParams

Remarks

Utility struct to accumulate root motion.

Variables

Name Description

Public variable

bool

 

bHasRootMotion

Public variable

float

 

BlendWeight

Constructors

Name Description

Public function

FRootMotionMovementParams()

Public function

FRootMotionMovementParams

(
    const FRootMotionMovementParams& O...
)

Copy/Move constructors and assignment operator added for deprecation support Could be removed once RootMotionTransform is made private

Public function

FRootMotionMovementParams

(
    const FRootMotionMovementParams&& ...
)

Functions

Name Description

Public function

void

 

Accumulate

(
    const FTransform& InTransform
)

Public function

void

 

Accumulate

(
    const FRootMotionMovementParams& M...
)

Public function

void

 

AccumulateWithBlend

(
    const FTransform& InTransform,
    float InBlendWeight
)

Public function

void

 

AccumulateWithBlend

(
    const FRootMotionMovementParams& M...,
    float InBlendWeight
)

Public function

void

 

Clear()

Public function

FRootMotionM...

 

ConsumeRootMotion

(
    float Alpha
)

Public function Const

const FTrans...

 

GetRootMotionTransform()

Public function

void

 

MakeUpToFullWeight()

Public function

void

 

ScaleRootMotionTranslation

(
    float TranslationScale
)

Public function

void

 

Set

(
    const FTransform& InTransform
)

Operators

Name Description

Public function

FRootMotionM...

 

operator=

(
    const FRootMotionMovementParams& O...
)

Constants

Name

Description

RootMotionScale

Deprecated Variables

Name Description

Public variable

FTransform

 

RootMotionTransform

RootMotionTransform should not be accessed directly, please use GetRootMotionTransform() to read it or one of the set/accumulate functions to modify it