Question by
felipezonaro16 · Mar 03, 2020 at 04:47 PM ·
physics3d
How to make a wall passable if you are not looking at it?
I am new to Unity but I know all the basics. I am trying to make a 3D level where objects appear and dissapear when you look at/away from them, easy until now, I was using OnBecameVisible and OnBecameInvisible to deactivate the collider and the mesh renderer for said blocks, but now I want to make a wall that you can only pass through if you are looking away from it, and it doesn't work correctly, only at specific angles the wall is passable and sometimes i have to keep moving the mouse around until it decides to work. Is what I'm trying to do possible or should I try something else for that section of the level?
Comment