vec_set(temp.x,vector(mouse_pos.x,mouse_pos.y,camera_dist)); vec_for_screen(temp,camera); temp.z = 0; vec_sub (temp.x, you.x); vec_to_angle (my.pan, temp); // rotate it towards the target
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de