Skip to content

C-users-quad/gravity-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

This is a 2D simulation that uses Newton's laws of gravity to simulate interactions between any number of particles.

How to use

Mouse Buttons

  • Hold LEFT CLICK to drag particles.
  • RIGHT CLICK to display info in the top-left corner about the particle / select a particle
  • SCROLL WHEEL to change camera speed

Keyboard Keys

  • WASD to move the camera around
  • ENTER to open the particle creation menu
    • ENTER again to create the particle
    • ESC to exit the menu and not create the particle
  • ESC to stop displaying particle info
  • BACKSPACE to delete the selected/dragged particle
  • R to refill simulation with particles

Key + Mouse Combos

  • LEFT CTRL + SCROLL WHEEL to change the camera zoom
  • Hold LEFT CTRL + RIGHT CLICK to follow the selected particle

About

simple particle smasher

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages