Navigation
API > API/Plugins > API/Plugins/UAFAnimNode
Adds a procedural offset to the root bone coming from incoming root motion. It can optionally fade this out over time (controlled by EUAFOffsetRootBoneNodeMode).
This allows a code-controlled character to still be influenced by root motion, e.g. during plant turns. It can lead to less foot sliding in a motion matching setup.
| Name | FUAFOffsetRootBoneNodeData |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAFAnimNode/Source/UAFAnimNode/Public/UAF/AnimNodes/UAFOffsetRootBoneNode.h |
| Include Path | #include "UAF/AnimNodes/UAFOffsetRootBoneNode.h" |
Syntax
USTRUCT (DisplayName="Offset Root Bone")
struct FUAFOffsetRootBoneNodeData : public FUAFModifierAnimNodeData
Inheritance Hierarchy
- FUAFModifierAnimNodeData → FUAFOffsetRootBoneNodeData
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Alpha | FBindableFloat | Current strength of the skeletal control. | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| AnimatedGroundNormal | FBindableVector | Surface normal that the current animation was authored for. Used with the bOnGround flag. | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| bClampToRotationVelocity | bool | Whether to limit the offset's rotation interpolation speed to the velocity on the incoming motion Enabling this prevents the offset sliding when there's little to no rotation speed | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| bClampToTranslationVelocity | bool | Whether to limit the offset's translation interpolation speed to the velocity on the incoming motion Enabling this prevents the offset sliding when there's little to no translation speed | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| bOnGround | FBindableBool | Signals whether the offset root bone translation should be projected onto a projected ground plane. | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| bResetOnTeleport | bool | If to reset the root bone offset on teleport. | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| MaxRotationErrorDegrees | FBindableFloat | How much the offset can deviate from the mesh component's rotation in degrees Values lower than 0 disable this limit | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| MaxTranslationError | FBindableFloat | How much the offset can deviate from the mesh component's translation in units Values lower than 0 disable this limit | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| MeshComponentTransformWorld | FBindableTransform | This has to be the mesh component transform in world space. | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| RotationMode | FBindableEnum | The rotation offset behavior mode. | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| RotationSmoothingTime | FBindableFloat | Controls how fast the rotation offset is blended out Values closer to 0 make it faster | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| RotationSpeedRatio | float | How much the offset can blend out, relative to the incoming rotation speed i.e. If root motion is rotating at 90 degrees/s, at 0.5, the offset can blend out at 45 degree/s | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| TeleportDistanceThreshold | float | Distance threshold used to detect teleports. | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| TranslationMode | FBindableEnum | The translation offset behavior mode. | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| TranslationSmoothingTime | FBindableFloat | Controls how fast the translation offset is blended out Values closer to 0 make it faster | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|
| TranslationSpeedRatio | float | How much the offset can blend out, relative to the incoming translation speed i.e. If root motion is moving at 400cm/s, at 0.5, the offset can blend out at 200cm/s | UAF/AnimNodes/UAFOffsetRootBoneNode.h |
|