Inverse Kinematics independently of frame update

Hello !

I’m using the mecanim IK targets in order to produce a new animation. I have different methods to produce a set of targets (for both feet and hands) over the time and then i want to “read” that animation by interpolating between each posture produced by my method.

Actually, this method is working, but the problem is that i’m forced to use a Coroutine in order to wait the end of the frame to get the update of mecanim IK which complicates the use of my code. I want to know if there is a way to tell the mecanim IK to reach a target, then get the position of the skeleton and then set a new target etc… without the need to wait a new frame for each set of targets ?

Thanks you,

Anyone got any ideas for a work around?

You can always update manually the animator from script with

Be careful as when you do this you’re blocking the main thread until the evaluation of the animator is finish so there is a big performance hit when you do this.

1 Like

Ahh nice ! I didn’t see that function …
It works nice !

Thanks you