Hi! I’m creating a character pose editor, and I’d like to read some ideas on how to start developing the inverse kinematic algorithms. I’m using Unity’s ragdolls with gravity off and kinematic on. At the moment I’m testing with the Scene view. When rotation a knee, how do you make it respect the Twist and Swing limits. Are there helper functions to accomplish this, or should I make my own? And are there functions for inverse kinematic? I don’t mind looking for algorithms and translate them, but maybe there is something ready that could save me some time.
Oh, and what’s the best way to reset the character pose? Should I save the initial values of joints?
So now it’s a fact that Unity 4 Indie doesn’t support Mecanim’s IK Rigs…
I don’t want to force developers into buying Unity Pro to use the pose editor, so I kept looking a working IK Solver. Now I found the Locomotion System has two IK solvers that I can use. The IK1JointAnalytic class can solve for 3 bones, and IKSimple can solve for more than 3 bones. Both IK solvers are extended from the abstract class IKSolver, then I just had to grab these 3 classes and quickly built a test. IK1JointAnalytic seems pretty stable, not like the others I tested. IKSimple makes the bones jump a lot, but I won’t be using it at the moment.