1 | if (launched == false) |
2 | { |
3 | var x_offset = disjoint_x * cos(degtorad(id_arm.image_angle)) |
4 | var y_offset = disjoint_x * sin(degtorad(id_arm.image_angle)) |
5 | x = id_arm.x + x_offset |
6 | y = id_arm.y - y_offset |
7 | x_offset = disjoint_y * (cos(degtorad(id_arm.image_angle + 90))) |
8 | y_offset = disjoint_y * (sin(degtorad(id_arm.image_angle + 90))) |
9 | x += x_offset |
10 | y -= y_offset |
11 | } |