/phys-sim

a simple n-body gravity simulation

Primary LanguageHaskell

phys-sim

an n-body gravity simulation i made with haskell.

run it with cabal run

controls

  • click to add objects
  • click and drag to add objects with a velocity in the direction you drag
  • use arrow keys increase and decrease the step size of the simulation
  • c to remove all objects