I have a problem. If an object falls on the floor (mesh collider) on its single face it falls through the floor. It doesn’t happen with other colliders.
Here’s the video: https://youtu.be/gi_UpyfopDk
What should I do?
I have a problem. If an object falls on the floor (mesh collider) on its single face it falls through the floor. It doesn’t happen with other colliders.
Here’s the video: https://youtu.be/gi_UpyfopDk
What should I do?
Is your mesh convex or concave?
If the floor is as flat as it looks, it’s faster to use a box collider anyway.
No, my mesh isn’t convex. I would like to make it convex or use the box collider. But I also have stairs, and I don’t want them to have a collision like a slide, if I’ll make them convex.
Hint: Stairs are a sequence of box colliders.
Just make sure they don’t meet edge-to-edge as this could cause issues for small objects warping through the thin edge. The lower box should be firmly tugged underneath the one atop.
Seriously, the MeshCollider is a crutch, a convenience feature, and comparatively slow. Collision geometry is usually (ideally) a higher number of primitive colliders working together. It’s more work but ultimately results in more consistent collision behaviour and better performance.