Racing car positions
#1

How would you suggest I find the position of the cars relative to each other?
(Would need to run on number of laps, as well as position)
Reply
#2

If you want to know the position of the player and you got three indicator

You need to sort the players
  • First after the laps
  • Than after the checkpoints
  • At last after the distance to their next checkpoint
After each sort you get groups, at the end you need to fit all groups together
It should work like merge sort, could be pretty hard to script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)