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

I'm not mathematically minded, so I'm struggling with this one.

I'm setting up a dynamic race system, in which checkpoints and races are created entirely in-game. I have a starting checkpoint (1st CP), which players can either drive to or be teleported to via in-game invites. Regardless of how they arrive, I need to put them in a race-grid formation.

I've got the formation working dynamically (use 1st CP as center, car to left, car to right, and then behind each of those "parent" cars).

However, now I need to get that entire formation rotated as a group, and facing the second checkpoint. This feel really complicated, and I'm not sure how to approach it.

I'd appreciate your help!

Ash
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: 1 Guest(s)