Answered

Export Anim model sink to the goround

THRoot99 3 weeks ago updated by Peter - Soxware Developer 2 weeks ago 2

Image 1334

I studied the video to create a simple animation, but the model sinks into the ground in the exported animation. After importing it into my project, the character's feet move to the waist.

How can I fix this?

Image 1335

Image 1336Image 1337Image 1338
UMotion Version:
1.29p02
Unity Version:
2021.3.16f1

Answer

Answer
Answered

Hi THRoot99,
thank you very much for your support request.

Is it possible that any of the parent bones of the bone defined as "hip" in the humanoid avatar is scaled (i.e. scale.x/.y./.z != 1)? In some cases, Humanoid doesn't work well in this case. If you need to apply scaling, apply it on the root (top most) transform (i.e. the one where the Animator component is present).

Here are a few other things you could try:

  1. Enable the "Generate Root Motion Curves (experimental)" feature and re-export.
  2. Try the FBX export to see if it makes a difference. To export via FBX, you need to select your humanoid character (or a 1:1 duplication of it) as destination file. The exported animation is then inside the humanoid character's FBX file.

Please let me know if any of the above fixes your issue or if you need further assistance.

Best regards,
Peter

GOOD, I'M SATISFIED

As you said, I have several character model that I randomly use it to make animation in UMotion, and only one of them has the "Hip" bone scaled to xyz 1 (which is why I find that some times the exported animation works fine and other times it has problems), and the rest of the models all have scaling issues.

I'm just using a properly scaled character model to animate in UMotion in the future, all good.

Thanks again.

Satisfaction mark by THRoot99 2 weeks ago

oh...I'm bad about English, the title was meant to say "In the preview of the exported animation, the center of the axis is not at the floor of the model, but at the waist."

Answer
Answered

Hi THRoot99,
thank you very much for your support request.

Is it possible that any of the parent bones of the bone defined as "hip" in the humanoid avatar is scaled (i.e. scale.x/.y./.z != 1)? In some cases, Humanoid doesn't work well in this case. If you need to apply scaling, apply it on the root (top most) transform (i.e. the one where the Animator component is present).

Here are a few other things you could try:

  1. Enable the "Generate Root Motion Curves (experimental)" feature and re-export.
  2. Try the FBX export to see if it makes a difference. To export via FBX, you need to select your humanoid character (or a 1:1 duplication of it) as destination file. The exported animation is then inside the humanoid character's FBX file.

Please let me know if any of the above fixes your issue or if you need further assistance.

Best regards,
Peter