Why is my character controller affected by gravity when Root Motion is activated ?
Hi all, I have a character controller on an animated character. I applied root motion on it so the animations make him move without movement script. And when I hit play, the character is affected by physics.gravity, even if I didn't ask for it. The weirdest thing is when I disable either the character controller or the animator component or if I just uncheck root motion, gravity doesn't apply anymore. Why ? I can't see the explanation anywhere on the documentation.
I don't know if it's related, but the animator and char controller are both on the root node of the animated character.
Thanks in advance for your answers :)
also, I have a script as component on the animated character, to manage the keyboard input and other things, but I didn't put anything about gravity, obviously :)
Answer by jococo · Oct 07, 2016 at 07:33 PM
I was having same issue. Go to edit > project > physics then set gravity to 0 instead of -9.8
Answer by Noirand · Oct 24, 2017 at 05:11 PM
This question is already one year old but I think there are somebody annoyed with the same problem, like me.
I found out that your character was affected by physics gravity if the Animator checked "Apply Root Motion"!
Turn it off and your character controller will be affected only by your script.
Your answer
Follow this Question
Related Questions
Root Motion not having gravity (while Animate Physics turned on). 1 Answer
No generate root motion curves button in unity 5.3.5 2 Answers
Rootmotion orientation won't change 0 Answers
How To preserve Forward momentum of an anim throughout another anim? 0 Answers
Charcter physics and groundedness 0 Answers