i am currently creating a space game but have hit a problem with movement (supposedly simple...). I am completely useless at vectors and angles so please bare with me. Basically i want the player to accelerate towards the pos3(vector) without it's pan/tilt changing. Here is what i have worked out (probably completely wrong laugh )

vec_accelerate( vMove, vSpeed, vector(5, 0, 0), 0.5); // sets vMove as the speed i want the ship to move
vec_set(temp.x, pos3); //
vec_sub(temp.x, my.x); //
vec_to_angle(ang_temp, temp); // ang_temp now holds the angle that the player ship has to go to
dont know what should go here laugh // <--- In here i need to put some kind of funtion that means that vMove takes into account the ang_temp
vec_add(my.x,vMove); // moves the entity using vMove as the speed, hopefully towards pos3, with the entity's pan/tilt being zero

Please dont laugh...
Thanks


One day there will be an unfixable bug,
That day is not today.