Question by
DaveDarkLion · May 12, 2020 at 06:30 PM ·
2dcollisioncolliderrigidbody2d
Why is my character slightly floating above the ground?
I have my colliders perfectly set in both my character and the ground. Both objects have a rigidbody2D (the ground is a kinematic object while the player is a dynamic one), and the player has gravity enabled, so that, when the game begins, he falls to the ground. However, when I start the game, after falling, the player will remain slightly above the ground, as you can see in the following image:
As you can clearly see, the colliders are not touching, so why does my player not keep falling until that happens? Btw, I have tried several values for the gravity, and nothing changed.
I could make the collider of the ground object thinner, but that's probably not a very good idea. So, does anybody know why this happens? And, how can I fix it?
untitled.png
(8.4 kB)
Comment