This is a simple physics simulator using the equations I learned in high school.
Press x to begin and end projection mode and the arrow keys to adjust launch speed and angle.
One of the biggest problems I have yet to solve is identifying when the begins object oscillating (due to mathematical loops, 30fps, and approximations) and arresting the motion. Right now I have a simple fix but it is inelegant and isn't flexible.
However enjoy the marvels of gravity! I suggest downloading the code and messing around with gravity and other global variables.
Let me know about any bugs or glitches you might find!
[Please log in to post a comment]