- Home /
Character's feet are shifting
Hi!
I have imported a character with a custom rig, and set it to humanoid rig inside of unity. I imported some animations and everything seems to work except the feet are gliding slightly but noticably across the floor (in x and z but also y).
The character is not really a moving game character, he just has to stand perfectly on 0,0,0 and do some animations. Right now it is as if his hips (or center of gravity?) are locked, and the feet are moving underneath. I want to change this around and have the feet planted on the grid and have the hips sway instead, like I have inside Maya.
I have played around with the Root Transform settings of the animation but no combination seems to help.
Does anyone know what I have to do here? And what do these Root Transform settings actually do?
Answer by Iskander · Jul 29, 2014 at 04:17 PM
It seems I've been able to find a solution myself. Btw I am using imported Mixamo animations if that's to anyone's interest.
These are the settings I ended up with:
Root transform rotation set to body orientation and bake to pose
Root transform position Y set to original, no bake
Root transform position XZ set to center of mass, no bake
Then I turned on Apply Root Motion on my character. This combination helpt to reduce the gliding of the feet, but it was still present.
Then finally I turned off the compression on the imported animations, and that did the trick. I suppose some valuable transform information was getting clamped in the compression process or something, I don't know.
Answer by Desktopdaydreams · Feb 12, 2020 at 07:53 PM
Just to let you know...
Root transform rotation set to body orientation and bake to pose Root transform position Y set to original, no bake Root transform position XZ set to center of mass, no bake Then I turned on Apply Root Motion on my character. This combination helpt to reduce the gliding of the feet, but it was still present. Then finally I turned off the compression on the imported animations, and that did the trick.
that solved the problem we were having. I had tried the various baking of body orientation / rotation but never thought of the animation compression! Thank you so much :-)
Answer by naishtech · Jun 30, 2021 at 10:49 AM
I also found that in addition to the other steps above, I had to select Animation Properties -> Motion -> Root Motion Node -> "Root Transform"
Edit: this also seemed to break root motion. I also tried the "hips" setting and that seemd to put the character through the floor.
Your answer
Follow this Question
Related Questions
Automatically adjusting the speed of a walking animation to avoid foot-sliding? 1 Answer
Can the mecanim animators Controller var be set in code? 1 Answer
Using Override Animation Controllers (NOT WORKING) 0 Answers
Random float parameter for idle animations 1 Answer
Adding an eyeblink animation layer 0 Answers