336992573e9a490e97781a5e5b05980b1bfda618
Right-clicking toggles velocity sensing mode and the cursor gets a line that indicates the average velocity of the targeted points. There is a coefficient of 50.0 on the pointer magnitude. The boids move so slowly that the line is very short without this magnification. There is also something wrong with the math. The boids expand and slow down, but the velocity vector does not reflect this. It *grows* slightly and then stays at that size as the boids slowly approach a stop. When writing the average velocity function, I realized that it is **exactly** the same as the center of mass function. They're both just averaging a bunch of points. Both functions are implemented as pass- through calls to a general purpose Vec2 averaging function. The `impl Iterator<...>...` *is* actually necessary because of the use of `map()`s to filter out the boids parts from the spatial tree.
Description
Languages
Rust
76.5%
HTML
12.4%
Makefile
9.7%
Dockerfile
1.4%