What I mean is. I've got my basic movement, gravity and everything sorted out. Now, what I would like to create is a camera.

The camera that I am trying to create is basically a basic third-person shooter camera. One that keeps the player entity as it's center and turns with it when I move the mouse. (I made it so that the character's pan changes with mouse_force.x)

So basically, how can I make my camera center around a model?

Also, how can I make it so that the camera doesn't go through walls? Say, if I went around a corner by moving sideways, that when the camera lost sight of the player; it would zoom to the player's view again?

I apologise if there is a blatantly obvious solution; but I did a brief bit of searching, and I couldn't find anything.