Hi guys,
I'm currently working on a third-person game and want to rotate the camera around my player with the mouse.
This is how my script looks at the moment:
ANGLE vAng;
VECTOR vec_cam;
vAng.pan -= mouse_force.x;
camera .pan -= mouse_force.x;
vec_rotate(vec_cam, vAng);
camera.x = ent_for_camera.x + vec_cam.x;
camera.y = ent_for_camera.y + vec_cam.y;
camera.z = ent_for_camera.z + vec_cam.z;
but the camera flies around the model all the time, not just when I move the mouse and the pan doesn't seem to chane either
thanks:D