G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FRotationRetargetingInfo Struct Reference

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

Public Member Functions

Functions
FRotationRetargetingInfo & opAssign (FRotationRetargetingInfo Other)

Public Attributes

FRotationRetargetingInfo
float32 SourceMaximum
 The maximum value of the source angle in degrees.
FTransform Source
 The source transform of the frame of reference. The rotation is made relative to this space.
FTransform Target
 The target transform to project the rotation. In most cases this is the same as Source.
ERotationComponent RotationComponent
 The rotation component to perform retargeting with.
FVector TwistAxis
 In case the rotation component is SwingAngle or TwistAngle this vector is used as the twist axis.
bool bUseAbsoluteAngle
 If set to true the angle will be always positive, thus resulting in mirrored rotation both ways.
float32 SourceMinimum
 The minimum value of the source angle in degrees.
bool bEnabled
 Set to true this enables retargeting.
float32 TargetMinimum
 The minimum value of the target angle in degrees (can be the same as SourceMinimum).
float32 TargetMaximum
 The target value of the target angle in degrees (can be the same as SourceMaximum).
EEasingFuncType EasingType
 The easing to use - pick linear if you don't want to apply any easing.
FRuntimeFloatCurve CustomCurve
 Custom curve mapping to apply if bApplyCustomCurve is true.
bool bFlipEasing
 If set to true the interpolation value for the easing will be flipped (1.0 - Value).
float32 EasingWeight
 The amount of easing to apply (value should be 0.0 to 1.0).
bool bClamp
 If set to true the value for the easing will be clamped between 0.0 and 1.0.

Detailed Description

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

Member Function Documentation

◆ opAssign()

Member Data Documentation

◆ bClamp

bool bClamp

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

◆ bEnabled

bool bEnabled

Set to true this enables retargeting.

◆ bFlipEasing

bool bFlipEasing

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

◆ bUseAbsoluteAngle

bool bUseAbsoluteAngle

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

◆ CustomCurve

FRuntimeFloatCurve CustomCurve

Custom curve mapping to apply if bApplyCustomCurve is true.

◆ EasingType

EEasingFuncType EasingType

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

◆ EasingWeight

float32 EasingWeight

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

◆ RotationComponent

ERotationComponent RotationComponent

The rotation component to perform retargeting with.

◆ Source

FTransform Source

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

◆ SourceMaximum

float32 SourceMaximum

The maximum value of the source angle in degrees.

◆ SourceMinimum

float32 SourceMinimum

The minimum value of the source angle in degrees.

◆ Target

FTransform Target

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

◆ TargetMaximum

float32 TargetMaximum

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

◆ TargetMinimum

float32 TargetMinimum

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

◆ TwistAxis

FVector TwistAxis

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