0 votes
asked in General Help by

When in the Puppet behavior, if I unpin the puppet for muscle simulation, my IK targets for the hands are no longer correct.

Gif Here

The IK targets are  shown as yellow spheres, I unpin the puppet once I climb on the wall, and you can see that it no longer accurately goes to the correct place. Also, after getting a distance up the wall, the character setup teleports above me, and im unable to use the raise arms.

1 Answer

0 votes
answered by (22.8k points)

When the puppet is unpinned, you can't use world space IK positions anymore because the ragdoll doesn't match with the animation anymore. You'll have to use the muscle that the arm is connected to (spine or chest) to convert the IK position from world space to muscle space:

Vector3 IKPosRelToChest = chestMuscle.transform.InverseTransformPoint(IKPosition);

IKPosition = chestMuscle.target.TransformPoint(IKPosRelToChest);

commented by
Thanks again for all the help!

Welcome to RootMotion Q&A, where you can ask questions and receive answers from the developer of Final IK and PuppetMaster and other members of the community.

Post as a guest, create an account or login via Facebook.

Please use the correct category when you post your questions.