ThatSnail

Untitled

Apr 21st, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. dir = point_direction(x, y, _IN.x, _IN.y);
  2. while(abs(dir-image_angle)>180){dir-=360*sign(dir-image_angle);}
  3. aimdir = median(45 + image_angle, dir, 135 + image_angle);
Advertisement
Add Comment
Please, Sign In to add comment