Flocking simulation based on Daniel Shiffman's implementation in "The Nature of Code"
The idea is for every boid to traverse the "pack" and update its position according to three rules:
- align
- cohese
- separate
By implementing all behaviour rules in single run, using method swarm, constant factor in algorithm complexity may be reduced by three times.
For further performance improvement, multithreading implementation is considered.