Flocking

Recommended reading on Boids and Flocking

http://www.red3d.com/cwr/boids/

http://en.wikipedia.org/wiki/Flocking

http://www.vergenet.net/~conrad/boids/pseudocode.html

http://evernet.de/deutsch/webmarketing/archiv/herdenverhalten.htm

also see Swarms