Crag Reynolds' 1986 Boids algorithm

Three.js and React implementation of the Crag Reynolds’ 1986 Boids algorithm with some improvements.

Check it here -->


Wow, beautiful. Very good job. I am particulary fan of voids algorithm.

The animation is interesting. I like the dynamics of the cube rotation with simulated inertia.

I couldn’t figure out how the angular position of an element is related to the direction of its movement. The oblong shape and rotation of the elements indicate the presence of such a relationship.

Maybe it makes sense to change the design of the elements a little?