camera collision

I downloaded a c# script (zoon,pan,dolly) from unify community and I used It

unifycommunity.com

but I have a problem, the camera see through the walls, floor and other object.

what I want is prevent this to happen I don’t
want the camera to see through any object

Is this possible without the help of CharacterController Component? I want to avoid to use CharacterController component cause it gives me logical problems about the movment of the panning

what should I do to fix this?, anybody please help me! thanks

I’ve answered at your other topic: http://answers.unity3d.com/questions/183557/add-camera-collision-without-charactercontroller.html

The recommendation was to try adding a capsule collider (or any other collider you wish) to the Camera game object.

The actual result will vary depending on the script you’re using and how it moves (might require a rigid body).

Check that out.

Hope that helps.