← All simulations
Biology / EMERGENT BEHAVIOUR

Flocking Intelligence: The Boids Playground

Watch hundreds of agents coordinate without a leader using three local rules.

INTERACTIVE · CANVAS · REAL MATH
Simulation viewport2D / REAL-TIME
DRAG SLIDERS TO EXPERIMENT

How this simulation works

Reynolds-style boids steer using separation, alignment and cohesion. Every agent responds to nearby neighbours only, producing collective movement without central control.

steering = wₛ separation + wₐ alignment + w꜀ cohesion
✦ TRY THIS EXPERIMENTSet cohesion low and separation high to dissolve the school into scattered individuals.
Made with 🤖 ChatGPT