Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 527 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 527 Bytes

N-body-sim

N-body simulator. Simulation currently uses Euler integration, and simulates the movement of several of the bodies in the solar system.

alt text

Usage

To run: python main.py

In use:

  • t: enables trails
  • d: enbales debug messages
  • q: toggles quadtree view
  • mouse scroll or p or o: zooms in or out

Requirments

  • pygame
  • numpy

ToDo

  • better integration method
  • Implement Barnes-Hut
  • Optimisations
  • cmd line options