Navigation
API > API/Runtime > API/Runtime/AnimGraphRuntime
This is the node that apply corrective morphtarget for twist Good example is that if you twist your neck too far right or left, you're going to see odd stretch shape of neck, This node can detect the angle and apply morphtarget curve This isn't the twist control node for bone twist
| Name | FAnimNode_TwistCorrectiveNode |
| Type | struct |
| Header File | /Engine/Source/Runtime/AnimGraphRuntime/Public/BoneControllers/AnimNode_TwistCorrectiveNode.h |
| Include Path | #include "BoneControllers/AnimNode_TwistCorrectiveNode.h" |
Syntax
USTRUCT ()
struct FAnimNode_TwistCorrectiveNode : public FAnimNode_SkeletalControlBase
Inheritance Hierarchy
- FAnimNode_Base → FAnimNode_SkeletalControlBase → FAnimNode_TwistCorrectiveNode
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAnimNode_TwistCorrectiveNode() |
BoneControllers/AnimNode_TwistCorrectiveNode.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BaseFrame | FReferenceBoneFrame | Base Frame of the reference for the twist node | BoneControllers/AnimNode_TwistCorrectiveNode.h |
|
| CurveName | FName | BoneControllers/AnimNode_TwistCorrectiveNode.h |
|
|
| RangeMax | float | Maximum limit of the input value (mapped to RemappedMax, only used when limiting the source range) We can't go more than 180 right now because this is dot product driver | BoneControllers/AnimNode_TwistCorrectiveNode.h |
|
| RemappedMax | float | Maximum value to apply to the destination (remapped from the input range) | BoneControllers/AnimNode_TwistCorrectiveNode.h |
|
| RemappedMin | float | Minimum value to apply to the destination (remapped from the input range) | BoneControllers/AnimNode_TwistCorrectiveNode.h |
|
| TwistFrame | FReferenceBoneFrame | Transform component to use as input. | BoneControllers/AnimNode_TwistCorrectiveNode.h |
|
| TwistPlaneNormalAxis | FAxis | Normal of the Plane that we'd like to calculate angle calculation from in BaseFrame. | BoneControllers/AnimNode_TwistCorrectiveNode.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| RangeMaxInRadian | float | Ranged Max in Radian, so that we don't keep having to convert. | BoneControllers/AnimNode_TwistCorrectiveNode.h | |
| ReferenceAngle | float | Reference Pose Angle. | BoneControllers/AnimNode_TwistCorrectiveNode.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void PostSerialize
(
const FArchive& Ar |
BoneControllers/AnimNode_TwistCorrectiveNode.h | ||
bool Serialize
(
FArchive& Ar |
Type traits support. | BoneControllers/AnimNode_TwistCorrectiveNode.h |
Overridden from FAnimNode_SkeletalControlBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void EvaluateComponentSpaceInternal
(
FComponentSpacePoseContext& Context |
Use this function to evaluate for skeletal control base | BoneControllers/AnimNode_TwistCorrectiveNode.h | |
virtual bool IsValidToEvaluate
(
const USkeleton* Skeleton, |
Return true if it is valid to Evaluate | BoneControllers/AnimNode_TwistCorrectiveNode.h |
Overridden from FAnimNode_Base
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CacheBones_AnyThread
(
const FAnimationCacheBonesContext& Context |
BoneControllers/AnimNode_TwistCorrectiveNode.h | ||
virtual void GatherDebugData
(
FNodeDebugData& DebugData |
BoneControllers/AnimNode_TwistCorrectiveNode.h | ||
virtual void Initialize_AnyThread
(
const FAnimationInitializeContext& Context |
BoneControllers/AnimNode_TwistCorrectiveNode.h |
Protected
Overridden from FAnimNode_SkeletalControlBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void InitializeBoneReferences
(
const FBoneContainer& RequiredBones |
Initialize any bone references you have | BoneControllers/AnimNode_TwistCorrectiveNode.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Curve_DEPRECATED | FAnimCurveParam | BoneControllers/AnimNode_TwistCorrectiveNode.h |