Floating Sprite Unity 2018.1.2
I have having this problem in Unity with a floating sprite:
Tiny gap between player's feet and ground, noticeable in build
Colliders are not touching
Making collider smaller fixes issue, but is dodgy workaround
Happens when colliding with tile maps or regular sprites with box collider 2D
Not caused by my script, because turning the script off but leaving rigidbody 2D on changes nothing
Is this a bug or am I doing something wrong? Any idea's?
Still haven't solved this. Just to be clear, both sprites go to the edge, so the players feet should be butting up right on the grass.
Answer by WI_ZzeR · May 04, 2020 at 05:58 AM
two years later and yet I have the exact same problem, I've tried everything the colliders are well placed the sprite is the right size, but it still floats. Searched everywhere on google but couldn't find anything to help me out, so if anyone knows how the problem occurs thanks a lot in advance