🐦 Boids Flocking Lab (3D)

Switch to 2D
Loading the flock…
Order φ–
Neighbours–
Nearest–
Flock radius–
Milling–
Drag to orbit · scroll or pinch to zoom · tap a bird to inspect its forces
Order φ–
Random-heading level–
Mean nearest neighbour–
Flock rms radius–
Mean speed–
Sim time0 s

Order parameter φ (1 = all moving the same way)

Mean nearest-neighbour distance and rms radius (u)

Numerical checks (run in your browser)

Five checks compare the running engine with exact results (random-heading order level, alignment decay rate, cohesion oscillation period, ordering, invariants). About a second.

The science

The 3D birds, wings and rock stacks were modelled and baked in Blender; the flight rules run live in the browser. Units "u" are arbitrary scene lengths.

Made with 🟠 Blender · Three.js