Hi guys,
I have been trying to develop a 2D platformer game, but I have encountered my first problem really soon.
As soon as I add rigidbody2D and animation to my protagonist gameobject, it starts to float in the air.
I tried to add exactly same components(rigidbody, collider, script) on a single sprite(no animation), the problem won’t occur.
Then I tried to take out only rigidbody2D on the original protagonist, and the character plays the idle animation and won’t float.
This problem only occurs when both animation and rigidbody2D are added to the gameobject.
Changing the mass or gravity solves it, but I am really curious why is this happening.
Any feedback will be appreciated.