Robert Garrett 336992573e Completed velocity pointer gizmo
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.
2024-07-11 14:46:36 -05:00
2024-07-11 14:46:36 -05:00
2024-07-05 08:45:34 -05:00
Description
A Boids implementation in Rust and Bevy, with a WASM build.
AGPL-3.0 84 MiB
Languages
Rust 76.5%
HTML 12.4%
Makefile 9.7%
Dockerfile 1.4%