From c77b1c3ab2ff5895a376bc3ce1b2e3b498ec8f1f Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 20 Sep 2024 08:05:00 +0200 Subject: [PATCH] Revert IK to the pre-1.8 to fix broken projects using it #2421 #2610 --- Source/Engine/Animations/InverseKinematics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Animations/InverseKinematics.cpp b/Source/Engine/Animations/InverseKinematics.cpp index 2b3940147..42e298ebf 100644 --- a/Source/Engine/Animations/InverseKinematics.cpp +++ b/Source/Engine/Animations/InverseKinematics.cpp @@ -113,7 +113,7 @@ void InverseKinematics::SolveTwoBoneIK(Transform& rootTransform, Transform& midJ newMidJointPos = rootTransform.Translation + projJointDist * toTargetDir + jointLineDist * bendDirection; } // TODO: fix the new IK impl (https://github.com/FlaxEngine/FlaxEngine/pull/2421) to properly work for character from https://github.com/PrecisionRender/CharacterControllerPro -#define OLD 0 +#define OLD 1 // Update root joint orientation { #if OLD