FPS Camera Collision

I was working on my game, and so far it's doing awesome. Unfortunately when I move to the wall and turn the camera, this happens. I can see outside of the wall. I'm guessing it has something to do with the camera. I'm using the first person shooter prefab that comes with Unity.

As you can see in the picture, on the left, you can see through the wall. How do I stop it from going through the wall?

alt text

Reduce the near clipping plane distance on the camera, it should be smaller than the character collider to prevent clipping into walls.

I have same trouble too. I think is a script problem. However change the dimension of FPS element it is a working trick :-)

If you change your cameras, Near Clipping to say 0.01 it should work great. maybe change your far clipping to say 500 or lower as well, this helped me when I needed to find out. Lenny…