A demonstration of Verlet integration using the graphics library Nonnau in Rust.
Collisions were not implemented, but doing so in O(n²) would be trivial. More efficient algorithms would require some sort of spatial grouping to avoid iterating trivial non-collisions.
The simulation was stepped at a constant rate of 240 updates per second. Nonnau's update timer was not used, because it's limited and problematic to say the least.
Code is not yet available on GitHub, but may be later.
Ещё видео!