求一个 群聚算法 的实现方式

如题,如何实现群聚算法。。。类似下面图片中的小鱼群。
求大佬指点。

关键词: steering
这篇文章应该能满足你的要求

https://gamedevelopment.tutsplus.com/series/understanding-steering-behaviors--gamedev-12732

2赞

你都能说出是群聚了,还有啥难的

感谢大佬,这个也解决了我的问题

是[Boids] (https://en.wikipedia.org/wiki/Boids)么?

老哥搞出来了吗