Simple Flockers

This is a simple example of "Boids"-style flocking, hastily put together late one night at the SwarmFest 2004 conference. It's much simpler and somewhat faster than our Woims and Woims3D models, which employ sinusoidal movement of multiple worm segments, mostly for fun.

In this model, some N flockers flock about in a toroidal landscape. Each flocker moves one step in the direction of a vector it has computed. This vector is the weighted sum of five unit vectors:

All these parameters affect the model as it is running. We have pre-weighted these values so that 1.0 for each one results in a nice flock. Try changing the values and see what happens.

Some additional model parameters which only affect newly-started models: