Yes, boids, they are used for simulating flocks of birds or movement of groups.
Here is my reference: http://www.kfish.org/boids/pseudocode.html
I basically used the same format as the ref. I think I made a math typo in it somewhere, it's a bit unstable in spots. https://www.dropbox.com/s/lyolk1o1lzap0 ... .capx?dl=0
This is a rewrite from scratch in a typical event fashion. Only eight events and I seem to have fixed the math so its a bit more stable. https://www.dropbox.com/s/oaybpue9w88yd ... .capx?dl=0
This rewrite is based on the idea that it would be cool if vector math could be done directly and not have to do the formulas with the components of the vectors. The result was a lot of the math was hidden in a bunch of reusable vector functions. All the function.calls in the expression kind of counteracted the simplifying of expressions I was going for. Not to mention that it's a bit more tedious writing expressions with my system because errors are just ignored. https://www.dropbox.com/s/rpqmyaypsxo4u ... .capx?dl=0