Skip to content

sulami/three-bodies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/