Simulate realistic projectile motion!
Project description
ProjectilePy
A python library aimed at simulating and solving projectile motion problems. Includes various methods for running accurate numerical discrete-time simulations, both with and without drag.
Features:
- Configurable drag or drag-less simulations for projectiles.
- Real world atmospheric data for improved accuracy with Newtonian drag.
- Itterative root finding methods for calculating firing solutions to targets.
- Easy to use simulator object class, with included examples.
Installation:
Currently the package is only availble from this repository.
In the future it may be published to the PyPi for easier installation.
Usage:
There are usage eamples in the src/examples folder, I encourage you to look through them for specific use cases.
- Create a new intance of the simulator class passing the approapriate arguments to the constructor.
- To run a straightforward simulation invoke the run() method on your simulator object.
- To examine the results, either invoke the analysis methods (such as final_position or time_of_flight), or directly access the positionValues list for the raw x-y coordiante pairs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
projectilepy-0.1.0.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for projectilepy-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74b267626eec65ff6783739cce8d28a6874a416c576f75d5762956aee9d2de0a |
|
MD5 | ef406f5d88028e9b7ce06c6c2514ced7 |
|
BLAKE2b-256 | 58b03a8ca41b9f5f7894970081093f4bd08726a1edb3b1ef833073b7dd19eeb8 |