camera collision

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

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:

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.