Pixel-Composer/objects/rotator_Rotator/Step_0.gml

14 lines
323 B
Text
Raw Normal View History

2023-12-05 09:51:24 +01:00
/// @description Insert description here
var dx = mouse_mx - drag_mx;
var dy = mouse_my - drag_my;
drag_mx = mouse_mx;
drag_my = mouse_my;
drag_sx += dx;
drag_sy += dy;
var _dirr = point_direction(drag_cx, drag_cy, drag_sx, drag_sy);
delta = angle_difference(_dirr, drag_sa);
delta_acc += delta;
2024-01-16 11:00:39 +01:00
drag_sa = _dirr;