Hey guys, just wondering if anyone can offer me any advice with gettin a 3rd person camera up and running. Feel free to just point me in the right direction of other threads that have already talked about this. Yeah, anyway. Basically I need a camera that will sit a set distance, I'll call this "x" behind my player object, and rotate around the player as and when the player object is rotated by the player. I also need the camera to rotate up and down, but without the player object rotating with it. I've got a couple of sketches to try and help explain what I mean...
Ok, these are arial view.
and these ones are from a side view.
I started working things out using trigonometry, but the formulas have got pretty untidy and kind of complex... (at the moment it needs a different one for each 90 degrees) I'm hoping there's a simpler way *crosses fingers* I've been mainly working on paper so far, so I don't really have any code down as of yet, just trying to understand the concept of it first.
Thanks for your time (hope someone understands what I've babbled on about.)
-Matt