Over the course of one week we have been studying the schooling behavior of and how we can implement it in code. We have come to the conclusion that Boids are the best way of doing what we wanted.
Boids are a generalized life form, which has some kind of flocking behavior. Using the rules first developed by Craig Reynolds in 1986 we can Simulate this behavior and implement it rather easy in code.
There are three rules that need to be applied to the Boids to achive the wanted flocking behavior. The first is Separation which defines what distance the Boids should have from each other. Next is Alignment, it aligns the Boids to the same direction. Last but not least is Cohesion this defines a center to the flock of Boids to which they get drawn to.