First person camera implementation

noatom
Posts: 12
Joined: Thu Nov 08, 2012 2:03 pm

First person camera implementation

Post by noatom »

How should I implement a first person camera that won't pass through other objects? Any ideeas?
MaxDZ8
Posts: 149
Joined: Fri Jun 24, 2011 8:53 am

Re: First person camera implementation

Post by MaxDZ8 »

You don't. Attach it to a physics object such as player's avatar.
Modelling your camera as a physic object has plenty of opportunities to bug, I even read about a game in which it somehow ended having health and thus being killed by area attacks. Just don't.