Glass tunnel collider

I did a long tunnel in glass material but when my player is outsite the collider work well ( he cannot enter in the tunnel ) but when he was inside the collider doesnt work ( he can pass away the tunnel wall.

Plz help me

Colliders are one-sided. Your colliders's faces are only facing outwards.

To get an inward facing colliders, you will need to import a mesh with inward facing faces and apply a mesh collider to it.

3D models have normals. (Imagine little pins sticking out from each polygon) The positive direction of these normals are generally on the outer surface of the model, pointing away from the polygon face. This affects how the collider component works. Objects will only collide with the where the normals are facing.

To get an idea what I'm talking about, create a plane in Unity, apply a material, then rotate the view to be on the backside of the plane. It disappears. That's because the normals are facing the other direction.

In order to get normals that are facing the inside of your tunnel, you will need to create a duplicate model in your 3D package with the normals reversed so they face inside. Or you could combine both models into a single mesh. (recommended).

ok thanks a lot

I don't understand very well. You want me to put another tunnel inside ?