Skip to content

stenioLim/Planet-Simulation-in-Python

Repository files navigation

Simuladores de Planetas em Python.

Esse simulador foi construido todo em Python usando as bibliotecas pygame e math. Onde usamos valores reais de massa do planeta e sua gravidade para calcular sua velocidade e sua posição de rotação em torno do sol.

O pygame foi usado para construir toda a parte grafica , criar um janela e desenhendo nela todos os planetas e o sol, e tambem como pode ser visto na imagem desenhamos o trajeto da movimentação atravez de uma linha.

A biblioteca math foi usada para construir toda a classe de colculos para saber a velocidade de cada planeta , usando informações de gravidade e massa, assim conseguimos posicionar de forma correta e cada planeta em seu devido lugar de acordo com os calculos, pode em algum momento mudar um pouco sua posição já que usamos valores reais.

Planet Simulation in Python.

This simulator was built entirely in Python using the pygame and math libraries. Where we use real values of planet mass and its gravity to calculate its speed and its position of rotation around the sun.

Pygame was used to build all the graphics, creating a window and drawing all the planets and the sun in it, and also as seen in the image we draw the path of movement through a line.

The math library was used to build the entire class of calculations to know the velocity of each planet, using gravity and mass information, so we managed to position correctly and each planet in its proper place according to the calculations, it may at some point change its position a little since we use real values.

About

Planet Simulation in Python, using real values ​​in all parameters, making gravity calculations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages