Flocks of birds, herds or animals, shoals (or schools) of fish, and swarms of insects seem to behave as if they are a single creature. In fact, their behaviour emerges from simple rules being followed by each individual creature. In this demonstration of how to simulate swarm behaviour, three rules used:-If the creature is close to the edge of the arena, it turns to avoid it-Othwerise, if the creature is very close to another creature, it turns to avoid it-Otherwise, if the creature is close to other creatures, it turns to face a similar direction
VERSION HISTORY
- Version 1.1 posted on 2012-02-29
Several fixes and updates - Version 1.1 posted on 2012-02-29