Graivty simulation in rust, using Barnes-Hut tree optimization and parallel computing using rayon.
https://vidstige.github.io/gravity/
The gravity program will print raw video to stdout. You can use ffplay (from the ffmpeg package) to conveniently display it.
cargo run --release
To run with wasm first install trunk
like so
cargo install --locked trunk
Then start a local dev server with
trunk serve
To deploy to a web server just do
trunk build --release
vidstige