Boids simulate the flocking behaviour of "bird-like objects", such as birds or fish. Each triangle's movement is decided by three forces: 1. Don't crash into other triangles 2. Try to match the speed and direction of nearby triangles 3. Try to head towards the centre of mass of nearby triangles Move your mouse on screen and see what happens! Coded in Rust and compiled to WebAssembly.
Implemented in Rust and compiled to WebAssembly.