- Home /
Is it possible to change root motion animations to in place?
When selecting a root motion animation and going to the animation tab, there are a number of options for "baking into pose". I've noticed that when I do this for some animations the root motion is basically changed to in place. However for other animation clips this only freezes/bakes the root node into place but the rest of the animation continues using root motion. Why does this work for some animations and not for others?
For example, let's say I have a root motion jump animation. I would like to bake this so that there is no vertical (y) root motion in the animation at all and the animation is completely in place. This way the jump height can be controlled via physics only. But as mentioned above, instead what happens is that the root node stays baked in place only, and the rest of the animation moves up vertically.
Is there something I am missing with these settings? Or is it not possible to achieve this in Unity?
Answer by YasinJavaid_ · Nov 30, 2018 at 08:01 AM
yes it is possible to convert any animation to in-place.
please follow this recipe of doing animation to in-place.
1) click on model fbx.
2) click on your required animation that you want to in-place and open animation tab not animator.
you will see that animation is read only.
3) Duplicate this animation clip and click on it. Now you will see this animation clips is (read/write) and removes read only.
4) in animation properties tab scroll down and find "Animator.Root T"
5) click on open drop down and click on Root T.z and remove this "z" property as shown in screenshot.
if still not you get inplace you try removing "x" property.
Answer by Hamesh81 · Mar 22, 2017 at 03:45 AM
If checking the bake options in the individual animation import settings does not do it, one way to disable root motion for an entire character is to uncheck "Apply Root Motion".
in my case disabling apply root motion.
disabling animation position xz properties all were not working.
Answer by Benson97 · Feb 03, 2021 at 06:21 AM
Followed the methods mentioned here works for me but not enough, I was changing a turn 90 animation from root to inplace and by deleting the root Q it disables the character do the turning animation, but character will still change his direction at the end of the animation, in this situation you need to delete the motion Q as well. This way character will not change direction during the turning animation and at the end of animation. Hope this helps.