spryte

flocking

boids
renderer
Each boid only sees its neighbours and follows three rules: keep some distance, match their heading, drift toward their centre. Flocks emerge from that. Your pointer is a predator: chase them. Set a rule to zero to see what it does.