How to prevent a sphere collider to go through a box collider


I’ve a peculiar problem with Unity and colliders.

My scene is composed by a sphere and a box. The scene is with no gravity. The box and the sphere are linked by a spring.
My box have box collider, rigidbody and mesh rederer components, and my sphere have sphere collider, rigidbody, and mesh rederer components.

I want to push my sphere with the box.

My problem is that sometimes, the sphere go through the box, even if I create a huge box collider to prevent such event.

Do you have a solution to my problem ?



Enable collision on the spring joint should do it!