RaceTrack

john's Avatar

john

24 Aug, 2019 03:14 AM

Animation of two cars (blue and red dots) racing along a track.

Although the cars move at the same speed, they seem to pull ahead and fall behind at various points during each circuit. This happens because the car taking an inside curve has a temporary advantage over the car taking an outside curve. But in any closed loop, however complex, these factors will balance out causing both cars to cross the finish line at the same time.

The animation is augmented by some novel visualizations which show what portions of the track give an advantage to the red car, and what portions benefit the blue car. The histogram shows the magnitude of that advantage at each point. The arrows show the changing direction of each car.

The network builds the track out of arcs and sine waves and uses my trace node to derive separate paths for the two lanes. In addition to the network and screenshot, I have also attached a movie of the race.

Enjoy!

John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • racetrack_screenshot.png 619 KB
  • racetrack.zip 51 KB
  • race6.mp4 136 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

18 Oct, 2019 01:06 AM
10 Oct, 2019 01:11 AM
02 Oct, 2019 09:51 PM
30 Sep, 2019 08:21 AM
29 Sep, 2019 02:02 PM

 

03 Sep, 2019 01:35 AM
24 Aug, 2019 03:14 AM
08 Aug, 2019 04:13 AM
02 Aug, 2019 09:27 PM
18 Jul, 2019 10:05 AM
12 Jul, 2019 10:39 PM