/3BodyProblem

python simulation of 3 body problem

Primary LanguagePython

3 Body Problem

python simulation of 3 body problem, using pygame

Features

  • physics simulation
  • multi-body gravitational interaction
  • reset and exit functions
  • pygame-based interface

Screenshots

Trails Off trails off

Trails On trails on

Installation

  1. You must have:
  • pygame
  • numpy
  1. Clone project and run python3 main.py
  2. You may encounter an error in "converting NaN to integer", just run again and it should solve itself