Maths: Calculating the angle required to face on checkpoint from a current location.
#2

I think that has been asked x times, it is "-atan2(X2 - X1, Y2 - Y1)" for the zAngle (X2, Y2 would be the second checkpoint and X1, Y1 the first - yeah there is a minus before atan2)
Reply


Messages In This Thread
Maths: Calculating the angle required to face on checkpoint from a current location. - by Ash. - 11.03.2015, 15:35
AW: Maths: Calculating the angle required to face on checkpoint from a current location. - by Nero_3D - 11.03.2015, 16:36

Forum Jump:


Users browsing this thread: 2 Guest(s)