This problem has troubled me for a long time, as shown below, the box will sometimes pass through the ground, I do not know why. I can detect a collision from OnCollisionEnter method. I have set collider depth to 20 . From unity sense view, I can see the box has the same collider depth as ground (20). If set gravity as: const float GRAVITY = -9.81f * 400 , then the box always pass throw the ground, If set gravity as: const float GRAVITY = -9.81f * 500 , Most of the time it works fine, Very few time the box go throw the ground. What's wrong ?
thanks sososo mush.