Stop a certain mesh & collider from clipping through a wall
I don't know many technical terms, especially when it comes to shaders (i think this will require a shader), but i will do my best to explain this.
I am working on a little stealth game where the enemies have rectangular volumes that extend from their faces which determine whether they see the player or not. It looks like this: 
Basically I want to clip this volume (mesh filter AND collider) so that it stops where the volume hits the wall, like this bad photoshop mockup:
If anyone knows how to do this, or a good place to start, any information would be greatly appreciated. Thanks! :)
 
                 
                f00f07b66bf85165dc070ee6c4077603.png 
                (51.1 kB) 
               
 
                
                 
                f00f07b66bf85165dc070ee6cee4077603.png 
                (37.1 kB) 
               
 
              
               Comment
              
 
               
              Your answer