Objects fall through floor

Hello all. I am going through sets of tutorials, and have encountered an issue that some of my objects (even though they have a collider and rigidbody) sometimes fall through the floor (a plane which has a mesh collider)

Here is a pen I am making:

and my plane, which it falls through if it I drop it on:

My understanding was that since the plane has a collider, rigidbodys should not fall through it? However, the pen always done. There are some other objects in the scene, which fall through it sometimes, but not always which has confused me.

I suspect, but can never reproduce it perfectly, that it has something to do with the mass or velocity of which the object hits the floor.

How can I make it so my objects never pass through the floor?

On your marker/pen set the collision detection mode to Continuous.

1 Like

thank you very very much!

is this to do then with the speed the marker hits the floor? By switching to cont we poll the object’s position more and it doesn’t pass through?

I understand that there must be a performance implication to having all your objects set to continuous. Is there a rule of thumb around what should be discrete vs cont? Is it based on size/speed/accuracy you need?

Try to imagine the object’s collider stepping through the world and if a step could result in the collider not overlapping other colliders because of its velocity or scale then switch to Continuous.