I'm learning 2D Unity and am experiencing a very strange problem. When I have 2 objects both with Box Collider 2D and a RigidBody2D, and one of them is set to be static so it doesn't move, the other one floats just above it. Here's a screenshot so it makes sense
The red box is the one that is not static, the black one is. The red one should sit atop the black one but is floating above it for some reason. I have no idea why. The hitboxes should be right, here are images of them
What can be done?