Hello,

i have a problem laugh

Code:
if(mouse_right == 1)
   	{
         vec_set(temp.x, mouse_pos.x);
   	 vec_set(temp.y, mouse_pos.y);
         vec_sub (temp.x, player.x);
         vec_to_angle (my.pan, temp);
         vec_rotate(temp, my.pan);
   	}



ok thats the snipet.
On a right mouse click or on hold the right mousebutton the player should rotate to/or with the mouse cursor.

So now if i pressed the right mousebutton the player rotates to the north maximum 90°. why?
he should rotate 360°.

Ok i am not really understand the vector thing but maybe anyone have an idea and could help me please.

I hope you understand my bad english laugh

Thanks a lot

oODarkPassionOo


Last edited by oODarkPassionOo; 10/27/11 15:27.