Click the green flag to start simulation Feel free to play around with the boids' important values (will be marked when made) Boids: https://en.wikipedia.org/wiki/Boids TL;DR: Boids simulate swarm behavior, like flocks of birds and schools of fish, relying only on the information it can see from the boids near it (its "neighbors"). You can change the number of boids in the code (change "count" variable"), but larger numbers are not recommended (due to general inefficiency of both clones and list accesses in Scratch) Current behavior: - Boids created - Have random position, heading, and velocity -Boids can move based on their velocity and heading - Wrap around edges - Boids can detect neighbors - Currently set to no limit for testing - NOTE: Not through border wrapping - Boids have extremely crude alignment force - Spins in circles together (kind of?) - Always turns in the same direction *WORK IN PROGRESS* TODO: Implement Flock Behavior - Border wrap calculations - Attraction Force - Repulsion Force - Alignment Force - Obstacle avoidance? (unlikely)
Credits to my partner in crime, Kim, for his contributions at often inconvenient times Thanks to Wikipedia for the boids article