Revert IK to the pre-1.8 to fix broken projects using it

#2421 #2610
This commit is contained in:
Wojtek Figat
2024-09-20 08:05:00 +02:00
parent ed7f190778
commit c77b1c3ab2

View File

@@ -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