mirror of
https://github.com/nasa/trick.git
synced 2024-12-27 08:32:30 +00:00
447 B
447 B
SIM_cannon_integ
The Simulation
This is a simulation of a cannon shooting a cannonball. Given the initial position of the cannon ball, the muzzle velocity (speed) of the cannon ball, and the elevation angle of the cannon barrel the simulation computes the cannon ball's trajectory and time of impact with the ground.
The acceleration of gravity is assumed to be -9.81 m/s2.