We have a strange problem: we use root motion for our enemy and created a side walk animation for it. Within the preview window of the FBX-Importer the animation looks great:
But if we use the animation in a blend tree, the enemy slides on the ground:
During runtime it has the same issue as in the blend tree preview. We also tried to not use blend trees but “normal” states… same problem.
Though the strangest thing is that root motion works for all other animations for this character. So Idle, Walk and Run animations are working as expected.
Also we don’t think that this is caused by an blending error of the root motion, because we set the blend values like this (there should be no blending):
It seems to work when I only use the two Side-Walk-Animations in my blend tree (it doesn’t matter if I use a “1D” or a “2D” blend tree).
But until another animation is added - for example an Idle or a Walk-Animation - then sliding-effect appears again… even when I make sure, that my clip has 100% of weight.
So this works:
And this doesn’t work:
May the problem be, that the side walk translates in X whereas the “normal” walk translates in Z?
It might be something specific to your character, but without inspecting the data directly, it’s hard to tell.
Please file a bug with your data, and we’ll look at it.