Mesh collider inside cube - inverted direction

Hi all, i’m new to unity and still learning.

In blender i have created a cube, removed one face from top , recalculated normals with “inside” option.

This model works ok but i have some collision problems, mesh collider is still working from outside the cube not inside while rendering and texturing are working without problem.

To be more precise , onCollisionEnter goes fired only when source target hit outside of this box not inside.

What am i missing ? How to flip mesh collider to work from inside?

15270-cube-opened.jpg

Uncheck “convex” on the mesh collider.

Not sure if this will solve your problem, but I believe you need to have a three dimensional wall for the trigger to work from both sides. In other words, your wall needs to have a tiny amount of thickness to it.

Alternatively, try using a different cube than the actual mesh for trigger events, and just look for OnTriggerExit when things leave the cube. Then any object inside that walks outside will trigger the OnTriggerExit function.