Hi,
just a little suggestion:
The anglediff(ang1,ang2) function works fine, but its a abs value without sign.
Please add a checkbox in this functionwindow for sign or abs (unsigned).
Why? For example for object moving in to directions.
angDiff += angleDiff(ang1,ang2)/10; //smooth moving to ang1
Pos.x = mid.x + sin(angDIff)*128;
Pos.y = mid.y + cos(angDIff)*128;
Here is a alternative script for singed angle diff:
angleDiff = ((((ang1- ang2) % 360) + 540) % 360) - 180;