I have seen a couple questions on similar subjects but none of the answers am I satisfied with.
I have a camera which follows a game object; the problem is that it can pass through walls and because of this, has the potential to show some areas that aren't meant to be seen.
I have my walls built using a mesh exported by Sketchup. So there aren't clean barriers that I can write in code. I'd much rather do it using the same physics system that correctly prevents my player object from moving through the wall.
Yet this doesn't seem to work. I try to put a collider on the camera, and also a rigid body, but it has no effect.
here is a image of my camera's collider bounds - see how it is partly inside the wall?
The walls are imported from FBX and I generated colliders upon import, so it's a mesh collider.
I am using cinemachine for the camera script.