Skip to content

shayaanthedev/Gravity-Slingshot-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Gravitational Slingshot Simulation

Python Pygame License Status

A simple 2D space simulation built with Python and Pygame that demonstrates the gravitational slingshot effect. Launch a spacecraft and observe how gravity alters its path around different planets. This project visualizes how a moving object behaves under the influence of gravity. By launching spacecraft near planets, you can see how their trajectories bend, accelerate, or escape depending on speed and angle.

📷 Preview

gravity.video.mp4

⚙️ Installation

Option 1 — Clone & Run

git clone https://github.com/shayaanthedev/Gravity-Slingshot-Simulation.git
cd Gravity-Slingshot-Simulation
pip install pygame
python main.py

Option 2 — Download Release

Go to the Releases section

Download the latest version

Extract the files

Run the executable

⭐ Support

If you like this project, consider giving it a star ⭐

Contributions are welcome.

fork → edit → pull request

About

A 2D physics simulation built using Python and Pygame that demonstrates the gravitational slingshot effect. The user can launch a spacecraft and observe how its path changes based on the gravity of different planets.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages