VECTOR to; VECTOR temp_dir; ANGLE offset_angle; vec_set(to, mouse_dir3d); vec_normalize(to, 500); //play a bit with 500 vec_add(to, mouse_pos3d); vec_diff(temp_dir, to, my.x); vec_to_angle(offset_angle, temp_dir); my.pan += ang(offset_angle.pan - my.pan) * 0.2 * time_step; // smooth rotation code
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de