(Package projectilesim
)
This package simulates projectile motion using VPython for visualization. It calculates and displays the trajectory of a projectile in different environments and for different projectile types.
Here are the runtime options: python projectile_sim.py -h
:
usage: projectile_sim.py [-h] [--test] [--no_gui]
Projectile Simulator
options:
-h, --help show this help message and exit
--test Run with pre-defined test cases
--no_gui Run without GUI
projectile_sim
: The main module that runs the system. It manages the entire simulation, physics calculations, and plotting.environment
: Represents the environment that the projectile will be flying through. Includes gravity and air density.projectile
: Represents the projectile. Includes mass, radius, and surface area.
For detailed API documentation, see API Documentation.
- Clone this repository.
- Run the setup script:
setup.sh
. (This will install needed dependencies) - Run
python projectile_sim.py
. (With or without command line options)