Camera auto zoom

Hi all.

I need to know how to make the camera automatically zoom in to the character when it hits a wall. I have the camera parented to an empty which is parented to the character. I can then rotate the empty to rotate the camera around the character.


I believe that YoFrankie overcame this problem by putting adding a ray sensor to the camera.

Check out the system they used here.

Here’s a script I just got.


cam_collision-mouse_Look.blend (158 KB)

Ok sweet thanks for the file. That seems about perfect.