How to prevent first person camera from going through walls

I have a 3d house and I have a few cameras set up inside the house and its like a virtual tour. I have this script that I’m using for scrolling forward and panning left and right on my cameras-
[1]: http://wiki.unity3d.com/index.php/MouseCameraControl

I would like to be able to prevent the user from going through walls. I have tried adding colliders and Ridgebodys to the camera and walls. I have also tried other solutions I have found on here but I can’t get them to work. I have also tried to use this script as well-
http://wiki.unity3d.com/index.php/DontGoThroughThings
I would appreciate any help on this I have been stumped for awhile.

Hello.

The “correct” way is : I have tried adding colliders and Ridgebodys to the camera and walls.

Well, rigidbody is only needed in the camera object for your propouse. But everythign should have colliders. How are you configuring the colldiers?