Value of g, the gravitational acceleration, in m/s/s
Value of vx, the horizontal velocity, in m/s
Initial value of vy, the vertical velocity, in m/s
Plot on the graph's vertical axis
The simulation shows a ball experiencing projectile motion, as well as various
graphs associated with the motion.
Use the buttons to select different values of g (the acceleration due to gravity),
the horizontal component of the initial velocity, the vertical component of the initial
velocity, and what to plot on the vertical axis of the graph (on the right).
A motion diagram is drawn, with images of the ball being placed on the diagram at 1-second intervals.
The numbers have been chosen so the motion diagram is always symmetric (the images of the ball on the y-axis
on the way up are always the same locations as the images of the ball on the way down), and the time for
the entire trip is always an integer number of seconds. (It should be obvious that this will not
always happen in reality!)
The arrows attached to the ball are the horizontal and vertical components of the velocity.
Simulation first posted on 7-30-2016. Written by Andrew Duffy
Updated 9-26-2017 (added speed graph) by AD