Skip to content

Commit

Permalink
Merge pull request #108 from neil3d/master
Browse files Browse the repository at this point in the history
Check if the planar limit is enabled
  • Loading branch information
pafuhana1213 authored Jan 28, 2024
2 parents dc7d03d + 7f873df commit ea9e9f7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,9 @@ void FAnimNode_KawaiiPhysics::AdjustByPlanerCollision(FKawaiiPhysicsModifyBone&
{
for (auto& Planar : Limits)
{
if(!Planar.bEnable)
continue;

FVector PointOnPlane = FVector::PointPlaneProject(Bone.Location, Planar.Plane);
const float DistSquared = (Bone.Location - PointOnPlane).SizeSquared();

Expand Down

0 comments on commit ea9e9f7

Please sign in to comment.