Live data from Hacker News

Gravity Simulator

nowykurier.com

71–80 of 135 posts

Re: Gravity Simulator

#71

This is nice, but please rename the OMFG button. As someone who works in K-12, it would be a shame if a program like this is rejected because of a button.

Maybe I should clarify that I didn't make this, I just stumbled upon it and thought other people would also get a kick out of playing with it :)

Re: Gravity Simulator

#72
post #7

It's really nice. Be sure to activate paths, I'm having a lot of fun using that to draw cool stuff :). https://i.imgur.com/j3YwI5y.png That was me trying to have a small particle making an 8-shaped path around two bigger ones that would be sufficiently far apart to not interact too strongly with each other. Of course, when the small particle went between the two bigger ones, it shifted their position a tiny bit, but…

[deleted]

Re: Gravity Simulator

#73
post #69

Very nice, wish it was HTML5 rather then flash.. It brings to light how hard it is to get a stable solar system. And of course I knew this but playing around I realized our sun is not stationary either... It's easy to forget the entire solar system we live in is this amazing mix of interactions between the planets, sun, other debris and outside mass from other parts of the universe.

The source is browsable if you modofy the URL. I expect someone with create a canvas driven clone within 48h:)

Re: Gravity Simulator

#75
post #69

Very nice, wish it was HTML5 rather then flash.. It brings to light how hard it is to get a stable solar system. And of course I knew this but playing around I realized our sun is not stationary either... It's easy to forget the entire solar system we live in is this amazing mix of interactions between the planets, sun, other debris and outside mass from other parts of the universe.

It would be nice to arbitrarily choose a specific particle to be the center of the system (the frame of reference).

Re: Gravity Simulator

#76

Such an amazing simulator to play with. I can only imagine how breath-taking this can be for kids to play around, plus it teaches physics!

Think about how breath-taking and educating must it be for a kid to write such a thing. As a person who actually learned basic mechanics by writing video games I do believe that "you ain't understood nothing until you know how to teach it to a computer". Trying to express knowledge in (working) code is a great exercise that mercilessly catches even tiny holes in one's understanding.

Ditto that, I often tell people computers are very stupid. One proof of that is they let humans program them. The second proof is you have to teach them everything from scratch. :-)

Re: Gravity Simulator

#78
post #73
post #69

Very nice, wish it was HTML5 rather then flash.. It brings to light how hard it is to get a stable solar system. And of course I knew this but playing around I realized our sun is not stationary either... It's easy to forget the entire solar system we live in is this amazing mix of interactions between the planets, sun, other debris and outside mass from other parts of the universe.

The source is browsable if you modofy the URL. I expect someone with create a canvas driven clone within 48h:)

Done. Although I did this years ago: http://mobile.sheridanc.on.ca/~claassen/Gravity/Gravity.html

Re: Gravity Simulator

#80

I did something similar, but with combat - ships, lasers and missiles. There are a couple of variations, and some tweaks like the ships accelerating perpendicular to the planets so they don't crash land. http://codepen.io/simonswain/full/ftEjD/ http://codepen.io/simonswain/full/CeHmh/

Amazing!

I have a non-combat version in 3d. Now I know what mine is missing. https://www.youtube.com/watch?v=73O8aDN41sU

Post reply on HN