Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rakin406/projectile-motion
Projectile motion demo
https://github.com/rakin406/projectile-motion
2d demo education motion physics simulation
Last synced: about 1 month ago
JSON representation
Projectile motion demo
- Host: GitHub
- URL: https://github.com/rakin406/projectile-motion
- Owner: rakin406
- License: mit
- Created: 2024-06-06T12:49:37.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-10T14:31:41.000Z (5 months ago)
- Last Synced: 2024-09-29T00:40:27.271Z (about 2 months ago)
- Topics: 2d, demo, education, motion, physics, simulation
- Language: Python
- Homepage:
- Size: 225 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
This is a demo of projectile motion. The program finds the best angle and
initial velocity using calculus. All useful information like horizontal range,
velocity etc. are shown in the top left corner. The calculations might not be
accurate. The code is quite messy because I rushed the project.Usage:
* Left mouse click makes the bucket go to the left, thus reducing the horizontal
range. Right click does the opposite.
* Press space button to start the simulation.
* Press 'R' anytime to reset the simulation.## Demo
[![Projectile Motion](http://img.youtube.com/vi/Djp7BpP9eXY/0.jpg)](http://www.youtube.com/watch?v=Djp7BpP9eXY)## Getting Started
### Dependencies
* Python
* Poetry (optional)### Executing program
* The command below uses git. You can also download zip version.
```bash
git clone https://github.com/rakin406/projectile-motion.git && cd projectile-motion
```* If you have poetry installed, do the following:
```bash
poetry install
poetry run python projectile_motion/main.py
```* Otherwise, do this:
```bash
pip install pyglet sympy
python3 projectile_motion/main.py
```## Authors
Rakin Rahman
## License
This project is licensed under the MIT License - see the LICENSE file for details