sulami / three-bodies

🪐 Three body simulation in Wasm

Home Page:https://three-bodies.sulami.xyz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Three Bodies

This is a simple three body simulation, built over a lunch break to try out macroquad.

An online version can be found here.

demo.mov

Note: If you are using a non-standard keyboard layout, the controls do not take that into account.

Building

For the native version, run

cargo run --release

For the wasm version, run

cargo build --target wasm32-unknown-unknown --release
cp target/wasm32-unknown-unknown/release/three-bodies.wasm docs/

About

🪐 Three body simulation in Wasm

https://three-bodies.sulami.xyz/


Languages

Language:Rust 100.0%