mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-30 17:06:27 +01:00
24 lines
No EOL
367 B
Text
24 lines
No EOL
367 B
Text
/// @description Insert description here
|
|
drag_mx = mouse_mx;
|
|
drag_my = mouse_my;
|
|
|
|
drag_sx = 0;
|
|
drag_sy = 0;
|
|
|
|
drag_cx = 0;
|
|
drag_cy = 0;
|
|
|
|
drag_sa = 0;
|
|
|
|
delta = 0;
|
|
delta_acc = 0;
|
|
|
|
function init(_m, cx, cy) {
|
|
drag_sx = _m[0];
|
|
drag_sy = _m[1];
|
|
drag_cx = cx;
|
|
drag_cy = cy;
|
|
drag_sa = point_direction(drag_cx, drag_cy, drag_sx, drag_sy);
|
|
|
|
return self;
|
|
} |