[HELP] Detecting the angle from checkpoints
#2

The best way would be using atan2, because you do not have to calc a lot for this. It requires the x and y difference between your two points.
All in all you could get the angle like this:

atan2(x1 - x2, y1 - y2)

with x1/y1 being your first checkpoint, and x2/y2 the other
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)