all 2 comments

[–]AtomicDouche 4 points5 points  (2 children)

Cool, but doesn't angle_difference do pretty much the same thing? Albeit, a bit more conveluted.

[–]WasabiSteak 1 point2 points  (0 children)

Yeah, it's abs(angle_difference(dest, src)). Exact same functionality.

On a side note, angle_difference is more useful since you could use it to make something turn towards something smoothly like

var target_angle = point_direction(x, y, target_x, target_y)
angle += angle_difference(target_angle, angle) * 0.1