👥 Crowd Evacuation: Social Force Model (2D)
2D top-down crowd evacuation simulation using the Social Force Model (Helbing & Molnar): agents are driven toward an exit and repelled by walls and neighbours, producing bottlenecks and the faster-is-slower effect.
⚙ Under the hood
A top-down 2D crowd evacuation simulation using the social force model. Agents move toward a single exit while being pushed away from walls and other people. Change the number of people and the exit width, or turn on panic mode, to see crowding and slowdowns near the exit.
social force modelcrowd dynamicspedestrian flowevacuationagent-basedbottleneck
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install