Search This Blog

To adblock users

Hello! If you see this, you are most likely using an ad blocker. (Or maybe you have JavaScript disabled. Or maybe my web server is down.) I have no problem with ad blockers; in fact I use one myself. If a site tries to deny me access unless I disable it, I just find a way to circumvent that. But if a site politely asks me to do so, but still allows access to the site, I disable it for the site. I am asking you to please do the same for this site. I can't make you, but I would appreciate it. Thank you! :-)

Sunday, December 27, 2009

Simple gravity simulator in Visual Basic


I wrote a program in Visual Basic that simulates gravity. Basically, it just simulates a box falling. Not that interesting, but the point is you can look at my code and see how I did it. As you can see from the screenshot, it has two modes: manual step, where you can click the Step button to advance one frame, and automatic, where it runs the simulation in realtime. You can also turn off the gravity, which basically just disables acceleration. The scale is one inch to one meter.

(Now to get some sleep...)

EDIT: I really was tired. I forgot to post the download link! Sorry about that... :-/
Here it is: http://www.mediafire.com/?jzamowkogdd