I was surprised I couldn't find much about this online, maybe I just don't know the right terms to search for.
I'm making a top-down racing game, and wondering what the best way to track the progress of cars around the course is, I.e. for telling at any given point around the course which cars are ahead of which other ones, and also making sure that entire laps are completed, etc. the course is defined as a series of coordinates for the outer and inner track boundaries.
I can think of a couple of ways of doing it - e.g. placing checkpoints at every corner and getting a car's progress by its position between the previous and next checkpoints - but this doesn't seem particularly elegant or robust. is there a "standard" way of doing it? or just a better way?