var delta = this.getAngle() - this.heading;
if (delta > 180) delta -= 360; // NOT WORK! 
currentAngle += math.abs(delta) > eps ? math.sing(delta) * eps : delta;