mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-29 16:36:16 +01:00
14 lines
No EOL
323 B
Text
14 lines
No EOL
323 B
Text
/// @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;
|
|
drag_sa = _dirr; |