FRotationRetargetingInfo

The [FRotationRetargetingInfo](API\Runtime\AnimGraphRuntime\FRotationRetargetingInfo) is used to provide all of the settings required to perform rotational retargeting on a single transform.

Choose your operating system:

Windows

macOS

Linux

References

Module

AnimGraphRuntime

Header

/Engine/Source/Runtime/AnimGraphRuntime/Public/CommonAnimationTypes.h

Include

#include "CommonAnimationTypes.h"

Syntax

struct FRotationRetargetingInfo

Remarks

The FRotationRetargetingInfo is used to provide all of the settings required to perform rotational retargeting on a single transform.

Variables

Name Description

Public variable

bool

 

bClamp

If set to true the value for the easing will be clamped between 0.0 and 1.0.

Public variable

bool

 

bEnabled

Set to true this enables retargeting.

Public variable

bool

 

bFlipEasing

If set to true the interpolation value for the easing will be flipped (1.0 - Value)

Public variable

bool

 

bUseAbsoluteAngle

If set to true the angle will be always positive, thus resulting in mirrored rotation both ways.

Public variable

FRuntimeFloatCu...

 

CustomCurve

Custom curve mapping to apply if bApplyCustomCurve is true

Public variable

EEasingFuncType

 

EasingType

The easing to use - pick linear if you don't want to apply any easing.

Public variable

float

 

EasingWeight

The amount of easing to apply (value should be 0.0 to 1.0)

Public variable

ERotationCompon...

 

RotationComponent

The rotation component to perform retargeting with.

Public variable

FTransform

 

Source

The source transform of the frame of reference. The rotation is made relative to this space.

Public variable

float

 

SourceMaximum

The maximum value of the source angle in degrees.

Public variable

float

 

SourceMinimum

The minimum value of the source angle in degrees.

Public variable

FTransform

 

Target

The target transform to project the rotation. In most cases this is the same as Source.

Public variable

float

 

TargetMaximum

The target value of the target angle in degrees (can be the same as SourceMaximum)

Public variable

float

 

TargetMinimum

The minimum value of the target angle in degrees (can be the same as SourceMinimum)

Public variable

FVector

 

TwistAxis

In case the rotation component is SwingAngle or TwistAngle this vector is used as the twist axis.

Constructors

Name Description

Public function

FRotationRetargetingInfo

(
    bool bInEnabled
)

Default constructor