- Home /
2D sprite animation causes problems with rigidbody
Hi, after much time and frustration, I finally managed to get my animation working on a 2D sprite. However, this seems to have affected the rigidbody component of the sprite. At first, the sprite seemed unaffected by gravity. I tried tweaking the mass and gravity scale in the rigidbody component and found that by increasing the numbers, the sprite was more affected by gravity but fell very slowly. I tried to search for the solution, without any success. Though I saw something that suggested something about adding the rigidbody to all elements of the animation, or something like that. But even if that is the solution, I don't know how to do it. Can anyone give me any help? Thanks.
I also have that problem and i have unchecked the box but he is still where i left him in the animation. And my player's movement script doesnt work either, can someone please help me?
Answer by Zyrac · Jun 11, 2014 at 06:42 PM
Ok, in case anyone has a similar problem, I found the solution. You have to go to the Animator component on the animated sprite and uncheck the box that says "Apply root motion".
Zyrac! I love you!
I've been lost in this problem for a week! I thought it was about new Unity 5.2 change in rigidbody. I used null parents to solve this but it just brought more problems.
The problems was not on the rigidbody, it was the root motion of the sprite animation! Thank you!
Your answer
Follow this Question
Related Questions
Gravity on object not working correctly 1 Answer
I have a planetary gravity script; how do I make the object speed up? 1 Answer
Check if entire box collider has air below, instead of just a point on the box? 1 Answer
Where is the general Rigidbodies Drag? 3 Answers
Prefab Sphere floating away 0 Answers