๐Ÿš€ Serve Locally

August 9, 2022 ยท View on GitHub

GPU N-body WASM Simulation
+ +

Click here to demo the simulation.

Authors: @seabassjh, @simbleau


๐Ÿ“– Overview

This repository is a 2D N-body simulation of a dynamical system of bodies, under the influence of physical forces such as gravity. The simulation is written completely in Rust with WebGPU and WGSL shading, exported to WebAssembly. We deploy the demo with GitHub Actions.

๐Ÿ”ธ Simulations like these are common in astrophysics and are used to understand the evolution of large-scale universal structures.


๐Ÿš€ Serve Locally

Dependencies

Serve

Screenshot


๐Ÿ“ Directories

  • assets: directory contains textures and shaders.
  • src: directory contains the rust source code.

๐Ÿ” License

This project is dual-licensed under both Apache 2.0 and MIT licenses.