An open API service indexing awesome lists of open source software.

https://github.com/youngermaster/celestial-object-interaction

This project make a simulator of the interaction of n (a natural number given) bodies in a 2D space.
https://github.com/youngermaster/celestial-object-interaction

Last synced: over 1 year ago
JSON representation

This project make a simulator of the interaction of n (a natural number given) bodies in a 2D space.

Awesome Lists containing this project

README

          

# Celestial Body Interaction

This project make a simulator of the interaction of n (a natural number given) bodies in a 2D space.

## Preview

![bodyInteraction.gif](assets/images/animation.gif)

## How to execute it?

- Windows

python main.py

- Linux

python3 main.py

## `Core` flags

There are two boolean flags:
- `Logger`: prints useful data on the command line while is executing the program.

- `Trayectory`: shows the trayectory of all bodies.

- ### Code

from functions import *

if __name__ == "__main__":
core(True, True) # You can change these boolean flags