Welcome to the interactive physics simulations app! 🚀
This project lets you explore and visualize four classic physical systems in a fun and graphical way:
- Spring Simulation 🪀
- Pendulum Simulation 🕰️
- Double Pendulum 🌀
- 2D Waves 🌊
Make sure you have Python 3.8+ installed. Then, install the required libraries:
pip install pygame pygame_gui numpy
python main.py
A window will open with a menu to choose the simulation you want to try. Just click the corresponding button and enjoy! 😃
- Adjust mass, spring constant, and gravity with sliders.
- Buttons to start/stop and reset.
- Control the mass with a slider.
- Buttons to start/stop and reset.
- Control the mass of the second pendulum with a slider.
- Buttons to start/stop and reset.
- Watch chaotic trajectories!
- Click to create disturbances on the surface.
- Press
Space
to pause/resume. - Press
R
to reset the simulation.
main.py # Main menu
spring.py # Spring simulation
pendulum.py # Pendulum simulation
wave_simulate.py # 2D waves simulation
double_pendulum.py # Double pendulum simulation
Distributed under the MIT License. Use it, modify it, and share it! 🤝