GRASBOCK

Orbital simulation 🪐 made using WASM + Rust + macroquad


I want to be able to run more advanced things in the browser. I also like using Rust and want to have ideally one language to avoid ffis. For that I used a library called macroquad that builds to WASM and is more efficient when it comes to drawing many objects in the browser (probably WebGL).

Now I can basically create games, simulation or applications inside the browser that can do more than just buttons and forms.

Here is an orbital mechanics example. I kind of like doing these.

Note that the orbits get larger over time. This is due to simulating in discrete steps. In reality they would not increase the amount of energy they have.