Mind the force.
Also, Andy, small request. I know you think it wouldn't be quite worth it to have more force values, but could you please have the editor accept any value? It's always nice to have the freedom to try even larger values

Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 4,Qual: 1,Zoom: 1,xSet: 0,ySet: 0], [x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 1000], [x0: 150,y0: 0,vx: 0,vy: -2.2,t0: 0,who: 3,m: 0], [x0: 120,y0: 0,vx: 0,vy: -2,t0: 0,who: 2,m: 100]
Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 100,Qual: 1,Zoom: 1,xSet: 27,ySet: -56], [x0: -32,y0: 91,vx: 0,vy: 0,t0: 0,who: 1,m: 1000], [x0: -106,y0: 126,vx: -2.15,vy: -3.05,t0: 40.5,who: 3,m: 0]
It's kind of like an event horizon, in that there's a region outside of which there's a very strong pull back inside. Similar for the large negative exponents, but backwards: If an object gets inside the imaginary circle, it gets destroyed.testtubegames wrote:Done and done. Put any number you'd like in for gravity's exponent.
For instance, suppose the force went as r^100...
Shocked me at first - I was sure it was a bug rearing its head. But of course, nope, that's just life in r^100.Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 100,Qual: 1,Zoom: 1,xSet: 27,ySet: -56], [x0: -32,y0: 91,vx: 0,vy: 0,t0: 0,who: 1,m: 1000], [x0: -106,y0: 126,vx: -2.15,vy: -3.05,t0: 40.5,who: 3,m: 0]
This was merely hilarious to watch. At first I was thinking "it's going in a straight line". Then it made a sudden curve.testtubegames wrote:Done and done. Put any number you'd like in for gravity's exponent.
For instance, suppose the force went as r^100...
Shocked me at first - I was sure it was a bug rearing its head. But of course, nope, that's just life in r^100.Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 100,Qual: 1,Zoom: 1,xSet: 27,ySet: -56], [x0: -32,y0: 91,vx: 0,vy: 0,t0: 0,who: 1,m: 1000], [x0: -106,y0: 126,vx: -2.15,vy: -3.05,t0: 40.5,who: 3,m: 0]
Challenge accepted:robly18 wrote: Secondly, I noticed that r^n as n approaches infinity gives you squares. And this kind of relates to x^2n + y^2n = a^2n, which, as n approaches infinity, starts resembling a square.
Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 100,Qual: 1,Zoom: 1,xSet: 0,ySet: 0], [x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 1000], [x0: 0,y0: -99.9,vx: 5,vy: -7.8,t0: 0,who: 3,m: 0]
There is a law for any polygon or star though: r^∞robly18 wrote:I also made a triangle, and it was also unstable. Then, with the same law, I made a five sided star.
That's what convinced me that there is no law for triangles, sadly.