prevent Camera from clipping through walls?

Hey everyone,

I’ve got a custom camera script written in C#, but I cannot for the life of me figure out how to add whatever is necessary to prevent the camera from clipping through walls. Ideally I would like the camera to act like a WoW camera in that the wall will push the camera forward, closer to it’s target instead of simply passing through.

Can anyone help me? I’ve had no luck so far!

there is a working wow styled camera script available to download somewhere in unity forums… Maybe you should search for it. You can download the script and see how it is done there, then you can add it to your script too.