I am making a game where an arrow is supposed to point towards the mouse pointer.
I am using the following lines in a while loop:
vec_to_angle (my.pan,mouse_pos3d);
my.tilt = 0;
the issue is that if the arrow moves it still rotates as if it's in the centre of the screen.
so it's not pointing at the mouse pointer any more.
does anyone know how to make the rotation move with it?
thanks
rtsgamer706