Flocking

https://en.wikipedia.org/wiki/Flocking_(behavior)

There are very simple models that simulate flocking behavior fairly well.