Prevent collider intersection

Hi, I’m just having an issue with colliders at a very small size which are intersecting each other at no velocity.

I set up a few cubes with scale 0.1 and froze the position on Z - rotation on XY (like there is no third dimension). My gravity is set to -0.81 so there is not much pressure on the cubes.

When testing the scene all colliders of the cubes will intersect (image attached).

Is there a way to prevent this behavior? I would need them to collide very clean, but sizing them up also affects other physical properties so thats not what I want.

[7852-screen+shot+2013-02-14+at+09.05.17.png|7852]

I guess it’s because of the min penetration setting: Unity - Scripting API: Physics.minPenetrationForPenalty

I’m afraid I don’t know how this affects performance though.

Physics engines need to allow some small penetrations, otherwise the system would never come to rest (i.e. stop moving).
You can tweak some parameters of the physics system and see if that helps (Edit - Project Settings - Physics). Try reducing the Minimum Penetration for Penalty Force or increasing the iteration count.

However, it is generally difficult to get a “crisp” result from a physics engine. That’s just not how physics engines work.