Keeping the camera from going through walls in a first person game in Unity?

Posted by Timothy Williams on Game Development See other posts from Game Development or by Timothy Williams
Published on 2012-05-01T19:49:00Z Indexed on 2012/09/19 15:55 UTC
Read the original article Hit count: 349

Filed under:
|
|

I'm using a modified version of the standard Unity First Person Controller. At the moment when I stand near walls, the camera clips through and lets me see through the wall. I know about camera occlusion and have implemented it in 3rd person games, but I have no clue how I'd accomplish this in a first person game, since the camera doesn't move from the player at all.

How do other people accomplish this?

© Game Development or respective owner

Related posts about c#

Related posts about unity