Hey guys,
I'm trying to set up a third person camera. I have the desired effect going. The camera starts behind the player, however when the player turns/pans the camera does not pan with the player. How can I get the camera to pan when the player moves from left to right? here's my code:
vec_set(camera.x, player.x ); // rotate the camera towards player's ship all the time
camera.x -= 100;
camera.z += 27;
vec_sub(temp, camera.x);
vec_to_angle(camera.pan, player.pan);
I appreciate any help you can provide.