IDK but I’m really happy with the code and I’m excited to share it. It’s the first example open sourced for ROBLOX. Their was some one other attempt but he never shared it.
I’ve been meaning to write this for a while so I’m glad I got it done. It goes nicely with my fish simulation. I’m going to publish iterations to this code. Proabably going to make examples of different flocks smaller flocks and the like.
This system is great to build off! You could probably add species and predators or make all sorts of different swarms.
Some main points are
More complex rules can be added, such as obstacle avoidance and goal seeking.
The boids framework is often used in computer graphics, providing realistic-looking representations of flocks of birds and other creatures, such as schools of fish or herds of animals. It was for instance used in the 1998 video game Half-Life for the flying bird-like creatures seen at the end of the game on Xen, named “boid” in the game files.
The Boids model can be used for direct control and stabilization of teams of simple unmanned ground vehicles (UGV)[6] or micro aerial vehicles (MAV)[7] in swarm robotics. For stabilization of heterogeneous UAV-UGV teams, the model was adapted for using onboard relative localization by Saska et al.[8]
–exerpt from the wikipedia article