- Home /
camera collision
I downloaded a c# script (zoon,pan,dolly) from unify community and I used It
**http://www.unifycommunity.com/wiki/index.php?title=SmoothMouseLook**
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
Answer by Jehos · Nov 06, 2011 at 03:07 PM
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.