A Swarm of Midges

This is a simple swarming algorithm that uses two rules: one of cohesion and another of separation.

Source code: swarm fly

Back to samples

Bookmark and Share