Overview
This is a p5.js sketch which simulates a crowd in a public space, trying to get to their own target ‘doorway’.
This uses a modified boid-flocking approach to simulate the behavior of the ‘boids’ (people) in the public space.
The Boids have a field-of-view, approximately 180 degrees in front of them.
They only try to align with objects that are already heading in the direction they want to go.
Controls
- GUI config options to alter behaviors, but no interactivity with the objects directly.