Similar simulation I've made earlier: http://newton.azurewebsites.net/ Pure Javascript using Sylvester.js for Math.
Gravity Simulator
111–120 of 135 posts
Re: Gravity Simulator
#112Re: Gravity Simulator
#113I 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/
Very cool. I notice that many ships tend to get stuck on the edge of the map though. Maybe make it so they loop back around to the other side of the map?
Re: Gravity Simulator
#114Very cool! I was able to get 2 masses to oscillate around each other in a funny way[1]. Seems they keep going like that forever. What is this kind of equilibrium called? [1] http://imgur.com/FQYpo9V
It took a little bit to generate this one.
Re: Gravity Simulator
#115Earlier quoted context omitted.
Done. Although I did this years ago: http://mobile.sheridanc.on.ca/~claassen/Gravity/Gravity.html
Great! I tried it out; when I combined a galaxy with a field , many particles went flying from the center at a high rate of speed. Why is that?
Re: Gravity Simulator
#116Very 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.
Re: Gravity Simulator
#117I'm stuck with an empty loading bar and > Error #2046
This problem can be fixed by either increasing the Adobe Flash local storage space, (also known as “Flash cookies”) or deleting them.
I did "rm -rf ~/.macromedia/Flash_Player/" but still get Error #2046....
Re: Gravity Simulator
#118I was trying for the effect you see in high school physics videos. My approach was to use a plane geometry mesh and apply a vertex displacement shader, but never quite got it to look or perform how I wanted.
Re: Gravity Simulator
#119Very 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.
Here's my HTML5 Version: https://news.ycombinator.com/item?id=8288434