Hi gb8,
I got the same problem here and I understand all the logic behind this equation:
function smallestAngleDiff( target, source )
local a = target - source
if (a > 180) then
a = a - 360
elseif (a < -180) then
a = a + 360
end
return a
end
The thing I don’t understand is how to callback the last angle (source) I had the move before…