dorkhub

nbody-wasm-sim

An N-body WebAssembly simulation using Web GPU

nuzzles
Rust25115 forksupdated 3 years ago
visit the demogit clone https://github.com/nuzzles/nbody-wasm-sim.gitnuzzles/nbody-wasm-sim

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.

more like this

anne-key

Firmware for Anne Pro Keyboard written in Rust

Rust572

TachiSnap

TachiSnap — Pixel Snapper for animation pixel artists. Rust + WebAssembly client-side tool for cleaning up AI-generated…

HTML50

urge

The Universal Ruby Game Engine (URGE) Project

C++50

bit_gossip

Pathfinding library for calculating all node pairs' shortest paths in an unweighted undirected graph.

Rust50

search

search projects, people, and tags