Live data from Hacker News

Gravity Simulator

nowykurier.com

11–20 of 135 posts

Re: Gravity Simulator

#11
Quote: "Particle mass is log of radius". Why not use real physics and make the mass proportional to the cube of the radius? It's also easier to compute. In fact, taking the log of the radius goes in the wrong direction -- the mass of a planet really does increase as the cube of its radius, which changes in a way opposite to log().

Oh, well. Here's my gravity simulator -- it uses JavaScript, no flash required:

http://arachnoid.com/orbital_dynamics

Re: Gravity Simulator

#15
Hey.. TBH its real fun to play with it.

Question.. How big is the frame? I create two objects and they went out of frame. Then I create 2 more but a bit bigger ones and after 2-3 minutes I see those two objects coming back and it looks good too :D .. check it out http://imgur.com/IBYeysm

Re: Gravity Simulator

#17
This is pretty cool! I wonder if there's a way I could implement that somehow into our turtle graphics app. Turtle gravity?

As for this app it would be awesome if you could zoom out -- I find most of my stable(-ish) orbits are very long and at very large mass sizes, so it would be good to see their entire orbits.

Post reply on HN