Flocking

This program uses a Flocker class to encapsulate all of the logic for creating a flocking simulation. Each individual Flocker follows simple rules: it finds the closest other Flocker, and then turns towards it.


This is a companion discussion topic for the original entry at https://happycoding.io/examples/processing/creating-classes/flocking