95cdd904850476b0d3d92226f6b6b4594eef614f
The cohesion function was erroneously applying forces to boids that shouldn't be experiencing them. It shouldn't be iterating over all boids-with-velocity and adding speed. It should be applying that force only to the one boid that the loop is examining at that iteration. I also cleaned up the signature to have just one query struct. I had it split as two because I was getting issues with mutability. The fix was to make the query mutable, and then keep the Transforms as immutable references. This way I can reach through and update the Velocity alone.
Description
Languages
Rust
76.5%
HTML
12.4%
Makefile
9.7%
Dockerfile
1.4%