Flocking & Murmuration
Reynolds rules: alignment, cohesion & separation forces
Boid Parameters
Number of boids:
120
Separation radius:
25
Alignment radius:
60
Cohesion radius:
80
Separation weight:
1.50
Alignment weight:
1.00
Cohesion weight:
0.80
Max speed:
3.0
Reset Flock
Reynolds (1987) rules:
1.
Separation:
avoid crowding neighbors
2.
Alignment:
steer toward avg heading
3.
Cohesion:
steer toward avg position
Click canvas to add a predator (scatter)
Order parameter:
φ = |⟨v̂⟩| — 1=perfect alignment, 0=disorder