Home▸Everyday Physics▸Multi-Lane City Street: Intersection Congestion and Flow (2D)

🚦 Multi-Lane City Street: Intersection Congestion and Flow (2D)

Top-down 2D four-way intersection: cars accelerate, brake for red lights and follow the car ahead, while sliders control the traffic-light timing, spawn rate and speed limit.

Everyday Physics2DEasy60 FPS📱 Mobile-adapted⇄ 3D version
Multi-Lane City Street: Intersection Congestion and Flow (2D) ↗ Open standalone

This 2D companion mirrors the 3D intersection's own physics: each car accelerates toward the speed-limit slider's value, brakes when its light is red or amber, and keeps a following gap behind the car ahead in its lane, while the N-S and E-W green-time sliders retime the signal cycle and the live readout panel tracks throughput, queue length and average speed.

⚙ Under the hood

Top-down four-way intersection where cars accelerate, brake for red lights and follow the car ahead.

traffic flowtraffic lightscar following modelurban planningkinematics

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)