Hey gang, so basically i was trying my hand on making a game kind of like "Mario Kart 64" (You know, with beautiful Sprite3D racers and stuff)
I got it working pretty much, fooled around for a while, had some fun, but then it hit me...
How do racing games code for vehicle positions? Pretty much every racing game in existence has something in the GUI showing your place, and this thing updates in real time.
I thought up a few methods but none sound like the best or most efficient way of doing it, the most convincing one was having some kind of pathfinding AI trying to "travel" from each car to the finish line and then "sorting" the cars from closest to furthest.
But anyways... how does it work?
Thanks in advance!