Skip to content

My attempt at a 2D nbody physics simulation with wgpu-rs used for graphics

Notifications You must be signed in to change notification settings

null-char/nbody

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Simulates gravity and collision of objects. On impact, objects do not fragment. Instead the mass of the smaller object is added to the bigger object. Collision is perfectly elastic.

Hotkeys

Spacebar to pause/unpause the simulation
Up Arrow to speed up the simulation
Down Arrow to slow down the simulation
R to reset the simulation
Mouse left-click to create new objects

About

My attempt at a 2D nbody physics simulation with wgpu-rs used for graphics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published