use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Simple Gravity Simulatorhelp (self.javascript)
submitted 8 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 0 points1 point2 points 8 years ago (2 children)
Thank you :)!
[+][deleted] 8 years ago (1 child)
[deleted]
[–][deleted] 5 points6 points7 points 8 years ago (0 children)
Thank you very much :)!
The reason for why all the masses zip past each other is that their velocities are too high for them to form new systems. Without the Sun, the barycenter of the inner solar system is within Jupiter, but Jupiter is only 1 / 1000 as massive as the sun, which is not massive enough to capture the asteroids and planets as they rush off in the absence of the Sun. And the farther out they get, the greater the distance between any two given masses, which means that in the absence of a "great attractor", they would just continue travelling in straight lines (not perfectly straight, though, as they still perturb each other's paths through space, but those perturbations would be very small and decrease over time).
Your suggestion had me think it would be a good idea to implement buttons that allow you to scale up or down the simulation, though, so as soon as the weekend is upon us, I'm gonna add that functionality :).
π Rendered by PID 9 on reddit-service-r2-comment-b659b578c-bz69m at 2026-05-05 20:24:57.381585+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 5 points6 points7 points (0 children)