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

Hi there!

I’ve used this sketch as a base to do a tutorial of reading serial in a sensor kit named Smart Citizen. Thank you very much and all the kudos!

1 Like