Hi I want to ask something that I can't quite figure out on my own.
How does a racing game keep track of who is 1st, 2nd, 3rd, and so on and so forth and update that information on the fly?
Also this algorithm must work for any track of arbitrary topology.