- Home /
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
$$anonymous$$e also Have the same problem...How to change normals towards inside??
Answer by skovacs1 · Oct 12, 2010 at 07:30 PM
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.
Answer by interactiveBoy · Oct 13, 2010 at 06:47 PM
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).
Answer by ovechkin1308 · Oct 13, 2010 at 03:18 PM
I don't understand very well. You want me to put another tunnel inside ?
Your answer
Follow this Question
Related Questions
Having trouble with internal tube colliders 0 Answers
Internal collisions 1 Answer
I need an Einstein! Destroying part of a cube/mesh 0 Answers
Question about a Collider for a Tunnel 0 Answers
Mess collider issue 1 Answer