Spawn a flock and drag predators or obstacles. Observe emergent group motion and tweak flock rules.
Flock Rules
1.0
1.0
1.5
100
30
Physics
4.0
3.0
150
80
0.5
Display
0
80
Presets
Controls:
Click canvas with Spawn Boids to add birds. Use Predator to place red predators that chase the nearest boid
and scatter the flock. Use Obstacle to place static circles the boids avoid.
Attract mode: click and hold to pull the flock toward the cursor.
Drag predators/obstacles to reposition. Right-click to remove predators or obstacles.
Adjust flocking rules — cohesion, alignment, separation — to see how group behavior changes.