[2D] Player keeps getting stuck/bounce on tiled ground

I’ve had this problem so many times and I cannot seem to fix it.
My player keeps getting stuck on the floor that I made all the time, and sometimes even bouncing up.
The tiles are perfectly placed next to each other and there are no visible gaps or height differences at all.

I’m confused why this is happening, some people say it has to do with precision issues within the Unity 2D engine, but it seems they’re not going to fix it if that’s the issues (more info here).

So, I’m assuming I’m doing something wrong but I can’t find out what… :confused:


Here’s what I’ve tried so far :

  • Instead of giving the player a Box Collider 2D, I gave it a Circle Collider 2D instead which cut down on the “stickiness”, but it still get s stuck a lot.
  • Adding a almost zero friction Physics Material to the player as well as giving it to the ground tiles.
  • Using Edge Colliders on the ground instead of Box Colliders.
  • Lowering the “Min Penetration For Penalty” value in the Physics2D settings tab.
  • Make the “Velocity Iterations” and “Position Iterations” higher and lower in the Physics2D settings tab

None of these things has worked and I can’t seem to find any other fixes for this issue.


Updates ;

  • I removed the edge colliders from the ground and replaced them with box colliders again, since that didn’t solve my problem.
  • Adding the circle collider fixed the getting stuck, however now it bounces instead.
  • Added a video preview of my problem >here<

There’s no reason it’d get stuck unless you’re forcing overlaps by moving the body directly or via changing the Transform.

If you’re instead talking about expecting multiple separate colliders to act as one continuous collider surface then you’ll not get that to work as each collider is solved separately no matter how perfectly you think they are aligned as explained in the link you referred to. You do say you’re using Edge Collider which completely solves that as it’s a single collider (assuming you’re using a single collider with multiple edges and not multiple edge colliders each with a single edge).

Maybe a video will clearly demonstrate what you mean by ‘stuck’.