§02.14 — Lab Playground
BoidsFlock
Reynolds-style flocking — separation, alignment, cohesion. The cursor attracts the flock; hold ⇧ while moving to flip it into a predator.
Tech
Agents · 2027
Status
Live
Renderer
WebGL2 / fallback
Updated
MMXXVII
Live · move the cursor
Agents · 202760 fps target
◊ Brief
Reynolds-style boids — separation, alignment, and cohesion only. The cursor acts as an attractor; hold ⇧ while moving to flip it into a predator.
- agents320
- perception60 px
- max speed2.6 u/f
- neighborhood1 in 4
§README
- §01Sampled neighbour search (every 4th boid) keeps the simulation under the 16ms budget without tanking visual quality.
- §02Hold ⇧ while moving the cursor to invert the cohesion term — the boids will scatter away from the predator instead of swarming toward it.