11#include "AnimNode_LegIK.generated.h"
13class USkeletalMeshComponent;
32 , LinkAxisZ(
FVector::ZeroVector)
33 , RealBendDir(
FVector::ZeroVector)
34 , BaseBendDir(
FVector::ZeroVector)
41 , LinkAxisZ(
FVector::ZeroVector)
42 , RealBendDir(
FVector::ZeroVector)
43 , BaseBendDir(
FVector::ZeroVector)
59 double TotalChainLength;
62 bool bEnableRotationLimit;
67 : MyAnimInstanceProxy(nullptr)
68 , TotalChainLength(0.0)
70 , HingeRotationAxis(
FVector::ZeroVector)
71 , bEnableRotationLimit(
false)
80 float SoftPercentLength,
86 return TotalChainLength;
108 UPROPERTY(EditAnywhere, Category =
"Settings")
111 UPROPERTY(EditAnywhere, Category = "Settings")
114 UPROPERTY(EditAnywhere, Category = "Settings")
119 UPROPERTY(EditAnywhere, Category = "Settings")
120 float MinRotationAngle;
123 UPROPERTY(EditAnywhere, Category = "Settings")
127 UPROPERTY(EditAnywhere, Category = "Settings")
131 UPROPERTY(EditAnywhere, Category = "Settings")
132 bool bEnableRotationLimit;
135 UPROPERTY(EditAnywhere, Category = "Settings")
136 bool bEnableKneeTwistCorrection;
141 UPROPERTY(EditAnywhere, Category = "Settings")
146 , MinRotationAngle(15.f)
147 , FootBoneForwardAxis(
EAxis::
Y)
149 , bEnableRotationLimit(
false)
150 , bEnableKneeTwistCorrection(
true)
192 UPROPERTY(EditAnywhere, Category =
"Settings")
196 UPROPERTY(EditAnywhere, Category = "Settings")
202 UPROPERTY(EditAnywhere, Category = "Settings", meta = (PinHiddenByDefault, UIMin = "0.01", UIMax = "1", ClampMin = "0.01", ClampMax = "1"))
203 float SoftPercentLength;
206 UPROPERTY(EditAnywhere, Category = "Settings", meta = (PinHiddenByDefault, UIMin = "0.0", UIMax = "1", ClampMin = "0.0", ClampMax = "1"))
209 UPROPERTY(EditAnywhere, Category = "Settings")
@ INDEX_NONE
Definition CoreMiscDefines.h:150
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
USkinnedMeshComponent float
Definition SkinnedMeshComponent.h:60
Definition NameTypes.h:617
Definition EnumAsByte.h:22
Definition Skeleton.h:295
@ false
Definition radaudio_common.h:23
Definition AnimInstanceProxy.h:144
Definition AnimNode_LegIK.h:158
FIKChain IKChain
Definition AnimNode_LegIK.h:170
int32 NumBones
Definition AnimNode_LegIK.h:166
FTransform IKFootTransform
Definition AnimNode_LegIK.h:162
FCompactPoseBoneIndex IKFootBoneIndex
Definition AnimNode_LegIK.h:164
void InitializeTransforms(FAnimInstanceProxy *MyAnimInstanceProxy, FCSPose< FCompactPose > &MeshBases)
Definition AnimNode_LegIK.cpp:79
TArray< FTransform > FKLegBoneTransforms
Definition AnimNode_LegIK.h:168
FAnimLegIKDefinition * LegDefPtr
Definition AnimNode_LegIK.h:163
float TwistOffsetDegrees
Definition AnimNode_LegIK.h:165
TArray< FCompactPoseBoneIndex > FKLegBoneIndices
Definition AnimNode_LegIK.h:167
FAnimLegIKData()
Definition AnimNode_LegIK.h:175
Definition AnimNode_LegIK.h:105
Definition AnimNode_LegIK.h:186
Definition AnimNode_SkeletalControlBase.h:22
Definition AnimNodeBase.h:324
Definition BoneContainer.h:192
Definition BoneReference.h:14
Definition BonePose.h:408
Definition BoneIndices.h:63
Definition AnimNodeBase.h:600
Definition AnimNode_LegIK.h:18
FVector Location
Definition AnimNode_LegIK.h:22
FIKChainLink(FVector InLocation, double InLength)
Definition AnimNode_LegIK.h:38
double Length
Definition AnimNode_LegIK.h:23
FVector BaseBendDir
Definition AnimNode_LegIK.h:26
FIKChainLink()
Definition AnimNode_LegIK.h:29
FVector RealBendDir
Definition AnimNode_LegIK.h:25
FName BoneName
Definition AnimNode_LegIK.h:27
FVector LinkAxisZ
Definition AnimNode_LegIK.h:24
Definition AnimNode_LegIK.h:50
TArray< FIKChainLink > Links
Definition AnimNode_LegIK.h:54
FIKChain()
Definition AnimNode_LegIK.h:66
double GetMaximumReach() const
Definition AnimNode_LegIK.h:84
float MinRotationAngleRadians
Definition AnimNode_LegIK.h:55
Definition AnimNodeBase.h:642