Answered

Pass animation end point (center of mass) to other animation

Кудрявый 2 years ago updated by Peter - Soxware Developer 2 years ago 1

Hello, I have two animations, "Idle" and "Get out of bed"
First animation "Idle"

Image 944

Second animation "Get out of bed"

Image 946

As you see the red center point on second animation is far from the character's feet and after I change second animation to first "Idle", character will return to red point center of first animation, how I can pass to "Idle" animation position of characters feet from "Get out of bed"?

UMotion Version:
1.26p05
Unity Version:
2021.1.26f1

Answer

Answer
Answered

Hi,
thank you very much for your support request.

Your animation is an "In-Place" animation. Meaning that when it moves, it does not move the red center point with it. In your case what you would like to use instead is a so called "Root-Motion" animation. That type of animation does move the center point.

Is your character of type "humanoid"? In that case, select the *.anim file and make sure that the "Bake Into Pose" setting of the "Root Transform Position (XZ)" is disabled. That should make the center move with the character. 


Also make sure to have "Root Motion" enabled in the Animator Component of your character in-game (in your actual scene) for this to work.

Here is Unity's documentation of the root motion settings: https://docs.unity3d.com/Manual/class-AnimationClip.html#ClipProperties

Please let me know in case you have any follow-up questions.

Best regards,
Peter

Answer
Answered

Hi,
thank you very much for your support request.

Your animation is an "In-Place" animation. Meaning that when it moves, it does not move the red center point with it. In your case what you would like to use instead is a so called "Root-Motion" animation. That type of animation does move the center point.

Is your character of type "humanoid"? In that case, select the *.anim file and make sure that the "Bake Into Pose" setting of the "Root Transform Position (XZ)" is disabled. That should make the center move with the character. 


Also make sure to have "Root Motion" enabled in the Animator Component of your character in-game (in your actual scene) for this to work.

Here is Unity's documentation of the root motion settings: https://docs.unity3d.com/Manual/class-AnimationClip.html#ClipProperties

Please let me know in case you have any follow-up questions.

Best regards,
Peter