I did something very similar some years ago while learning metal [1], I recall them being called "boids". I spent days just playing with the various parameters, luckily my implementation was not as pretty as the one offered in the OP, otherwise I would have lost weeks instead.[1] https://github.com/ghyatzo/metalplay?tab=readme-ov-file
_0ffh|7 months ago
stirfish|7 months ago
I can move them to GitHub or something, but they are currently hosted in my pantry. Please be gentle :)