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… ![]()
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<
Unfortunately no solution found yet. I use
– HelliumSetMaxResolutionin theStartfunction of my first scene.