Answered

character moves up in idle

eetu 1 month ago updated by Peter - Soxware Developer 4 weeks ago 1

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?

UMotion Version:
1.28
Unity Version:
2021.3.0f1

Answer

Answer
Answered

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

Answer
Answered

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