I have it so when A/D are pressed the character model rotates, if I set camera.pan = my.pan; it just looks weird, maybe because it was meant for first person mode but how can I have a camera that looks in the same direction? at the moment its fixed to follow at a certain angle and point.
Code:
camera.x = my.x+80; //camera location behind the player
camera.y = my.y; //camera left/right placement
camera.z = my.z+25; //camera height
camera.tilt = -15; //make it look downwards
//camera.pan = my.pan;
Thanks, its doing the same though. When the player looks left the camera also turns left where as I want the camera to stay behind him and turn with him. Like a third person action game. But when my character turns around the camera does and sometimes the camera is infront of the player whilst turned.