- Home /
Gravity not working in a sidescrolling 2d game after upgrade to Unity 5
I have been working on a 2d game using unity 4 for a while in which the hero is grounded and able to jump over obstacles. After upgrading to Unity 5 this morning, the Rigidbody2d componenent attached to that object is no longer responding to gravity. I have tried moving it to a higher Y coordinate and would expect the hero to fall on game start. I have tried removing and adding a new Rigidbody 2d component etc.
Is there a hidden setting to control the global gravity value or a way I can verify that forces are acting on that object at runtime?
Answer by petrbena · Mar 27, 2015 at 03:56 PM
Open your object and in animator properties uncheck root motion
This seems to be some new feature that causes this to happen
Answer by carlosabreuRD · Mar 08, 2015 at 08:33 PM
thanks to this guy reading out i find the solution, i went to my object and disabled the animator and everything started working as expected, not much tested
http://answers.unity3d.com/questions/563090/physics-gravity-appears-very-weak.html
Your answer
Follow this Question
Related Questions
how to disable gravity on collision of rigidbody2d? 4 Answers
Upgraded to Unity 5, Animators are causing issues. 1 Answer
Make object use gravity without rigidbody. 2 Answers
Issue with mouse position script 1 Answer
Gravity Change + Flip 1 Answer