We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a2fd86 commit 9a0576cCopy full SHA for 9a0576c
Plugins/KawaiiPhysics/Source/KawaiiPhysics/Private/AnimNode_KawaiiPhysics.cpp
@@ -855,7 +855,7 @@ void FAnimNode_KawaiiPhysics::AdjustByAngleLimit(FComponentSpacePoseContext& Out
855
856
if (AngleOverLimit > 0.0f)
857
{
858
- BoneDir = BoneDir.RotateAngleAxis(-AngleOverLimit, Axis);
+ BoneDir = BoneDir.RotateAngleAxis(-AngleOverLimit, Axis.GetSafeNormal());
859
Bone.Location = BoneDir * (Bone.Location - ParentBone.Location).Size() + ParentBone.Location;
860
}
861
0 commit comments