1 | function scr_rotatearoundobject |
2 | { |
3 | var __theta = point_direction(arg0.x, arg0.y, x, y); |
4 | var __radius = point_distance(arg0.x, arg0.y, x, y); |
5 | __theta += arg1; |
6 | x = arg0.x + lengthdir_x(__radius, __theta); |
7 | y = arg0.y + lengthdir_y(__radius, __theta); |
8 | direction += arg1; |
9 | } |