Physics / Math
Swarm (boids)
Flocking from three local rules; predators and obstacles.

What happens
A flock with no leader: each bird only avoids crowding, aligns with neighbours and steers toward them, yet the swarm turns, splits and rejoins as one living cloud. Release predators to see panic waves ripple through, drag the obstacle spheres into its path, or try the dense murmuration.
Equations used in the module
Equations v ← v + w_s · separation + w_a · alignment + w_c · cohesion |v| clamped, neighbours within radius R three local rules, one global flock


