Checkpoint Streamer
#7

not "move 90", but "turn 45" degrees.

to calculate a players rotation for letting him face to a certain spot, use the atan2() function, supplying the offsets (difference) between the 2 desired locations.
it may occur that you need to add 180° to the final result or exchange the subtraction parameters on both x- and y position for calculatuing the angle...
Reply


Messages In This Thread
Checkpoint Streamer - by Patrick - 20.01.2013, 19:36
Re: Checkpoint Streamer - by DaRk_RaiN - 20.01.2013, 19:40
Re: Checkpoint Streamer - by Patrick - 20.01.2013, 19:57
Re: Checkpoint Streamer - by Roach_ - 20.01.2013, 19:59
Re: Checkpoint Streamer - by Patrick - 20.01.2013, 20:02
Re: Checkpoint Streamer - by Roach_ - 20.01.2013, 20:06
AW: Checkpoint Streamer - by Babul - 20.01.2013, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)