character moves up in idle
I have problem with idle animation cycles with NPCs. If I use Root motion, they move naturally, but all the time slightly move upwards although the angular velocities are zero in the created clip. Any ideas?
Answer
Hi,
thank you very much for your support request.
This happens due to the fact that humanoid generates the root motion curve out of the center of gravity of the character (and that might shift around even while you idle).
The simplest way to tell humanoid to stop incrementing the root motion along Y is by selecting the animation clip in Unity's project window. Then in the inspector window, set the tick mark at "Bake Into pose" under the "Root Transform Y" headline.
Please let me know how this works for you and don't hesitate to reach out again in case you have any follow-up questions.
Best regards,
Peter
Customer support service by UserEcho
Hi,
thank you very much for your support request.
This happens due to the fact that humanoid generates the root motion curve out of the center of gravity of the character (and that might shift around even while you idle).
The simplest way to tell humanoid to stop incrementing the root motion along Y is by selecting the animation clip in Unity's project window. Then in the inspector window, set the tick mark at "Bake Into pose" under the "Root Transform Y" headline.
Please let me know how this works for you and don't hesitate to reach out again in case you have any follow-up questions.
Best regards,
Peter