Noah Copeland
Member
Hiya!
I'm tracking to make a simple line-based mini bar (or progress bar) for a short 1 vs 1 race to the goal.
I want the the mini map (to be be display at the bottom of the screen) to show how close both player 1 and player 2 are in relation to the goal.
A quick mock up:
I'm not worried about basic drawing code. My main concern is how to calculate a racer's progress. The tracks are not a straight line, but have turns and twists. How could I be able to determine the racer's relative progress
to the goal?
the track for reference. top left is start, bottom right is end
I'm tracking to make a simple line-based mini bar (or progress bar) for a short 1 vs 1 race to the goal.
I want the the mini map (to be be display at the bottom of the screen) to show how close both player 1 and player 2 are in relation to the goal.
A quick mock up:
I'm not worried about basic drawing code. My main concern is how to calculate a racer's progress. The tracks are not a straight line, but have turns and twists. How could I be able to determine the racer's relative progress
to the goal?
the track for reference. top left is start, bottom right is end