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.
Happy Coding!
Let me know about any bugs or glitches you might find!
P#57388 2018-10-02 09:55 ( Edited 2018-10-03 02:28)
[Please log in to post a comment]