Finally I’ve been able to code a… half descent flocking system, here sharing it with you on it’s 2d version, with it’s whole code for you to mess with (if you dare to try and understand the code).
wandering, chasing, running, arriving, avoiding, cohesion and alignment steering forces.
it could really use a quadtree for space partitioning but… well. it will eventually work.

