Code: Select all
Gravity Fun at TestTubeGames.com: [ForceGr: r^(-2),Qual: 1,Zoom: 1,xSet: 0,ySet: 0], [x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 2,m: 1000,c: 2,w:5], [x0: 50.8278514582,y0: 0.0,vx: -0.0,vy: 4.4355667983,t0: 0,who: 3,m: 0,c: 5], [x0: 49.7171409543,y0: 10.5677045373,vx: -0.922206192771,vy: 4.33863902166,t0: 0,who: 3,m: 0,c: 5], [x0: 46.4335528214,y0: 20.6735496769,vx: -1.80410754968,vy: 4.05209190066,t0: 0,who: 3,m: 0,c: 5], [x0: 41.1205956173,y0: 29.8758614929,vx: -2.6071607496,vy: 3.58844891951,t0: 0,who: 3,m: 0,c: 5], [x0: 34.0104710662,y0: 37.7724548013,vx: -3.29626851422,vy: 2.96797350129,t0: 0,who: 3,m: 0,c: 5], [x0: 25.4139257291,y0: 44.0182105826,vx: -3.84131352751,vy: 2.21778339915,t0: 0,who: 3,m: 0,c: 5], [x0: 15.7066698882,y0: 48.3401593386,vx: -4.21847470699,vy: 1.37066552036,t0: 0,who: 3,m: 0,c: 5], [x0: 5.31295720413,y0: 50.5494111698,vx: -4.41126829928,vy: 0.463642981148,t0: 0,who: 3,m: 0,c: 5], [x0: -5.31295720413,y0: 50.5494111698,vx: -4.41126829928,vy: -0.463642981148,t0: 0,who: 3,m: 0,c: 5], [x0: -15.7066698882,y0: 48.3401593386,vx: -4.21847470699,vy: -1.37066552036,t0: 0,who: 3,m: 0,c: 5], [x0: -25.4139257291,y0: 44.0182105826,vx: -3.84131352751,vy: -2.21778339915,t0: 0,who: 3,m: 0,c: 5], [x0: -34.0104710662,y0: 37.7724548013,vx: -3.29626851422,vy: -2.96797350129,t0: 0,who: 3,m: 0,c: 5], [x0: -41.1205956173,y0: 29.8758614929,vx: -2.6071607496,vy: -3.58844891951,t0: 0,who: 3,m: 0,c: 5], [x0: -46.4335528214,y0: 20.6735496769,vx: -1.80410754968,vy: -4.05209190066,t0: 0,who: 3,m: 0,c: 5], [x0: -49.7171409543,y0: 10.5677045373,vx: -0.922206192771,vy: -4.33863902166,t0: 0,who: 3,m: 0,c: 5], [x0: -50.8278514582,y0: 2.87965113772e-14,vx: -2.5129696831e-15,vy: -4.4355667983,t0: 0,who: 3,m: 0,c: 5], [x0: -49.7171409543,y0: -10.5677045373,vx: 0.922206192771,vy: -4.33863902166,t0: 0,who: 3,m: 0,c: 5], [x0: -46.4335528214,y0: -20.6735496769,vx: 1.80410754968,vy: -4.05209190066,t0: 0,who: 3,m: 0,c: 5], [x0: -41.1205956173,y0: -29.8758614929,vx: 2.6071607496,vy: -3.58844891951,t0: 0,who: 3,m: 0,c: 5], [x0: -34.0104710662,y0: -37.7724548013,vx: 3.29626851422,vy: -2.96797350129,t0: 0,who: 3,m: 0,c: 5], [x0: -25.4139257291,y0: -44.0182105826,vx: 3.84131352751,vy: -2.21778339915,t0: 0,who: 3,m: 0,c: 5], [x0: -15.7066698882,y0: -48.3401593386,vx: 4.21847470699,vy: -1.37066552036,t0: 0,who: 3,m: 0,c: 5], [x0: -5.31295720413,y0: -50.5494111698,vx: 4.41126829928,vy: -0.463642981148,t0: 0,who: 3,m: 0,c: 5], [x0: 5.31295720413,y0: -50.5494111698,vx: 4.41126829928,vy: 0.463642981148,t0: 0,who: 3,m: 0,c: 5], [x0: 15.7066698882,y0: -48.3401593386,vx: 4.21847470699,vy: 1.37066552036,t0: 0,who: 3,m: 0,c: 5], [x0: 25.4139257291,y0: -44.0182105826,vx: 3.84131352751,vy: 2.21778339915,t0: 0,who: 3,m: 0,c: 5], [x0: 34.0104710662,y0: -37.7724548013,vx: 3.29626851422,vy: 2.96797350129,t0: 0,who: 3,m: 0,c: 5], [x0: 41.1205956173,y0: -29.8758614929,vx: 2.6071607496,vy: 3.58844891951,t0: 0,who: 3,m: 0,c: 5], [x0: 46.4335528214,y0: -20.6735496769,vx: 1.80410754968,vy: 4.05209190066,t0: 0,who: 3,m: 0,c: 5], [x0: 49.7171409543,y0: -10.5677045373,vx: 0.922206192771,vy: 4.33863902166,t0: 0,who: 3,m: 0,c: 5]
30 asteroids, in a geosync orbit. Just Ptolemy the planet.
Here's a much larger version (360 asteroids, spinning at 1 deg/s): http://codepad.org/dO1e7LzW (just triple click the output to select)
Try adding some dust, or putting an asteroid a little bit inside or outside the circle. Also try adding a very small (mass=1?) planet on a nearby orbit and watch the disruption, especially on the large version.
As an aside, I think the angle of other bodies doesn't take into account the camera/Ptolemy's angle, so a bit of a bug. (Geosync asteroids are nonrotating in both normal and Ptolemy, for example)