Skip to content

shashihonnu/nbody-wasm-sim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPU N-body WASM Simulation
+ +

Click here to demo the simulation.


📖 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.

About

An N-body WebAssembly simulation using Web GPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 96.8%
  • HTML 3.2%