Geosynchronous stuff

What did you draw?
Post Reply
A Random Player
Posts: 523
Joined: Mon Jun 03, 2013 4:54 pm

Geosynchronous stuff

Post by A Random Player »

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]
http://codepad.org/AfkmJ3Ka
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)
$1 = 100¢ = (10¢)^2 = ($0.10)^2 = $0.01 = 1¢ [1]
Always check your units or you will have no money!
User avatar
testtubegames
Site Admin
Posts: 1148
Joined: Mon Nov 19, 2012 7:54 pm

Re: Geosynchronous stuff

Post by testtubegames »

Oh wow, that's really cool. This post reminds me that, damn, I gotta get back to work on the Gravity Sim. There's been a bit of a pause here, I'm afraid, for summer travels, visiting family, and working on a couple contract gigs. (Yay, money!) But that's all winding down, so I'll be able to hop back on it, and fix some bugs (indeed, that's a rotation bug you found).

Watching this cool geosynch-code reminded me how much fun I have working with the Gravity Sim. Neat idea -- so strange how everything looks perfectly still, but the dust you put in acts very strange indeed.
Post Reply