Skip to content

Commit

Permalink
Fix Issue : AdjustByAngleLimit is not working properly #99
Browse files Browse the repository at this point in the history
  • Loading branch information
pafuhana@hotmail.co.jp authored and pafuhana@hotmail.co.jp committed Aug 11, 2023
1 parent 5a2fd86 commit 9a0576c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ void FAnimNode_KawaiiPhysics::AdjustByAngleLimit(FComponentSpacePoseContext& Out

if (AngleOverLimit > 0.0f)
{
BoneDir = BoneDir.RotateAngleAxis(-AngleOverLimit, Axis);
BoneDir = BoneDir.RotateAngleAxis(-AngleOverLimit, Axis.GetSafeNormal());
Bone.Location = BoneDir * (Bone.Location - ParentBone.Location).Size() + ParentBone.Location;
}
}
Expand Down

0 comments on commit 9a0576c

Please sign in to comment.