From 27602c37ff010feeec8cc65534ba4a6354ae4c22 Mon Sep 17 00:00:00 2001 From: Mateusz Wojt Date: Thu, 21 Sep 2023 15:54:06 +0200 Subject: [PATCH 1/3] fix packaged build Adding missing includes to fix building plugin in packaged build mode --- .DS_Store | Bin 0 -> 6148 bytes .../Private/AnimNode_KawaiiPhysics.cpp | 2 ++ .../KawaiiPhysics/Private/KawaiiPhysics.cpp | 1 + .../Source/KawaiiPhysics/Public/KawaiiPhysics.h | 1 + 4 files changed, 4 insertions(+) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..4dfbacceb08cd09e924c43d462ba16f9ebe87e1e GIT binary patch literal 6148 zcmeHKOH0E*5T3QwCKRCug&r5Y7VJZ+;w9927bAL5sSPPL7_+5m?V%KM)<5Jg@%K2h zy8){`coMNQu=~xk0b_5lE*GYuO66##Is5eiaP2$@&9Hf%7V&~rqPKpM=_Q4p_~ z=r5Y++e>f`F-&0ypT1uO=y?l9ag?vRC~j_*9LFg;cm9K#`IG)+ns)l*8ya0I z6$iQA53ZuYtXJ7NRmr3uC4;d}h{6Ge++IgXsAe5CO~O>?`o`h7uG_0r=kr#hU6akj zqeV^5kDK+HJZQBS3)k7*+dsMJJ;qOodNEWAWL?X)#T;Hy`BK%hKTcwm4AGNk< Date: Thu, 28 Sep 2023 07:27:04 +0200 Subject: [PATCH 2/3] remove leftover Mac resources file --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 4dfbacceb08cd09e924c43d462ba16f9ebe87e1e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKOH0E*5T3QwCKRCug&r5Y7VJZ+;w9927bAL5sSPPL7_+5m?V%KM)<5Jg@%K2h zy8){`coMNQu=~xk0b_5lE*GYuO66##Is5eiaP2$@&9Hf%7V&~rqPKpM=_Q4p_~ z=r5Y++e>f`F-&0ypT1uO=y?l9ag?vRC~j_*9LFg;cm9K#`IG)+ns)l*8ya0I z6$iQA53ZuYtXJ7NRmr3uC4;d}h{6Ge++IgXsAe5CO~O>?`o`h7uG_0r=kr#hU6akj zqeV^5kDK+HJZQBS3)k7*+dsMJJ;qOodNEWAWL?X)#T;Hy`BK%hKTcwm4AGNk< Date: Tue, 26 Dec 2023 17:29:00 +0800 Subject: [PATCH 3/3] check if planar limit enabled --- .../Source/KawaiiPhysics/Private/AnimNode_KawaiiPhysics.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Plugins/KawaiiPhysics/Source/KawaiiPhysics/Private/AnimNode_KawaiiPhysics.cpp b/Plugins/KawaiiPhysics/Source/KawaiiPhysics/Private/AnimNode_KawaiiPhysics.cpp index f59ec1a..73a441d 100644 --- a/Plugins/KawaiiPhysics/Source/KawaiiPhysics/Private/AnimNode_KawaiiPhysics.cpp +++ b/Plugins/KawaiiPhysics/Source/KawaiiPhysics/Private/AnimNode_KawaiiPhysics.cpp @@ -842,6 +842,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();