Boid Laws 1. Separate... Steer away from nearby Boids 2. Alignment... Align direction with neighbors 3. Cohesion... Turn towards center of local flock Mouse to influence / ripple See inside! Attempted to make code simple
Thanks to @NemoNaturally for the basics of boid physics engine