Log In  

Cart [#57387#] | Code | 2018-10-02 | License: CC4-BY-NC-SA | Embed
1

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)

:: dw817

Your cart here reminds me of a flash game I played years ago called, "Kick The Critter."

You should be able to find it with Google and see that angle and acceleration are all important to catching the best "breeze."

P#57433 2018-10-02 22:28 ( Edited 2018-10-03 02:28)

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-07-19 01:43 | 0.014s | 2097k | Q:19