An open API service indexing awesome lists of open source software.

https://github.com/louis-finegan/basic-projectile-simulation-pygame-python3

Simple interactive projectile simulator using PyGame in Python3.
https://github.com/louis-finegan/basic-projectile-simulation-pygame-python3

collisions euler-integration projectile-motion-simulation pygame python3

Last synced: 5 months ago
JSON representation

Simple interactive projectile simulator using PyGame in Python3.

Awesome Lists containing this project

README

          

# Basic Projectile Pygame Simulator Python3.

## Libaries used:

1. `pygame`

2. `math`

3. `time`

4. `os`

## How to use:

1. Click on one of the grey rectangles and begin typing in the initial conditions. Use the `UP_ARROW` and `DOWN_ARROW` keys to switch between the rectangles. Text boxes will appear as light-grey when selected. Enter the following initial conditions:

- Initial x-velocity in the top most text box.

- Initial y-velocity in the middle text box.

- Launch angle in the bottom most text box.

A recommended initial condition would be `x-vel = 4.5`, `y-vel = 16` and `angle = 45`.

2. Press Enter to start Simulation.

Simulation would rom for `60 seconds`, then after the program will close.

* To quit the program click the x in the top right corner, or press `q` at anytime while the program is running.
* To reset the program when running press `r` at anytime the program is running.
* To delete inputs from the text boxes before pressing enter, select the text box and use the `BACK_SPACE` key.

## Icons:
Catapult icon by Icons8

Ball icon by Icons8