https://github.com/kavicastelo/planets_realistic_simulation
Solar panel simulation with real values. base and physical calculation credits gose to Tech with Tim Youtube Chanel
https://github.com/kavicastelo/planets_realistic_simulation
physics-simulation pygame python simulation solar-system
Last synced: about 1 year ago
JSON representation
Solar panel simulation with real values. base and physical calculation credits gose to Tech with Tim Youtube Chanel
- Host: GitHub
- URL: https://github.com/kavicastelo/planets_realistic_simulation
- Owner: kavicastelo
- License: mit
- Created: 2023-11-26T12:21:00.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-26T16:53:01.000Z (over 2 years ago)
- Last Synced: 2025-01-31T09:42:54.978Z (over 1 year ago)
- Topics: physics-simulation, pygame, python, simulation, solar-system
- Language: Python
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Planets realistic simulation
This is a simulation for solar system. Used exact values to calculate force, gravity, distance and other params.

## packages & libraries
- pygame
- math
## functions
- draw()
- this function makes the mainframe and helps to set each element's position of the screen. also this makes what are
the actual distances from planets to the sun.
- attraction()
- this function calculates how to force each planet gravity with other planets. means, venus need more force to
circulation because mercury gravity in addition sun's gravity.
- update_position()
- this function calculates position changing all planets according to timestamp and updates the screen at 60fps.
timestamp calculates 1ms equals 1 day in the real world
## licence
copyrights go to the [Tech with Tim](https://www.youtube.com/@TechWithTim) YouTube channel for the first 4 planets.
This project is licensed under the MIT LICENSE - see the [LICENSE](LICENSE) file for details.
© Copyright received by [kavindu kokila](mailto:kavindu.kokila.info@gmail.com)