Unity 2D gaps between objects

Hello everyone, look at this:

Is there any solution for this problem? The issue comes from the colliders. I know that because I already disabled them to see if the problem is gone. Yes, the gap wasn’t there anymore when I disabled the colliders.

Thanks for any suggestions.

If that’s so, can you click ‘edit’ on the collider and shrink it a little to fix it?

The gap still is there. Only difference: it looks the objects are on the ground. But that’s not the fix I am looking for.

Okay. Hope you find a resolution.

So, I found a solution for my issue after a couple of hours. I like to share it with the community.

Solution: Go to >> EDIT >> PROJECT SETTINGS >> PHYSICS 2D >> Default Contact Offset = 0.01 (change this to 0.001 or 0.0001)

I hope this is will help people who get the same problem.

1 Like

Ah, cool. Glad you found a fix.