Raycast Third Person Camera Problem

Hello;

I'm working on TPS project with OrbitCamera Script from Third Person Demo, but even though there is raycast camera code i cant get it to work, the camera still goes into environment meshes. I have examined a couple of example files but I couldnt integrate them into my project, can you please help? Like I said Im using OrbitCamera.js file with little modifications, and I'd like my camera to zoom closer to the target when in contact with environment etc... like in every normal TPS game.

Thank you very much.

You can try this: open up the TPS-Auth scene in the editor, deploy it as standalone, run it and start a server there. Then connect to it from the editor, it should work.

here you go,a prefab for this:- http://blockmonkey.com/my-work/unity-3d-work/

anyone?

please?

anyone? doesnt anyone know how to do this?