Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 2,Qual: 1,Zoom: 0.1,xSet: -1219.65,ySet: -1756.35], [x0: -30,y0: 50,vx: 0,vy: 0,t0: 0,who: 1,m: 1000], [x0: 5166.2,y0: 4582.2,vx: 0.14,vy: -0.17,t0: 10,who: 3,m: 0]
Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 2,Qual: 1,Zoom: 0.1,xSet: -1219.65,ySet: -1756.35], [x0: -30,y0: 50,vx: 0,vy: 0,t0: 0,who: 1,m: 1000], [x0: 5166.2,y0: 4582.2,vx: 0.14,vy: -0.17,t0: 10,who: 3,m: 0]
Looks like just mis-precision. Try making something similar but smaller and see if it happens. Or wait a few weeks until I can make a script to shrink or speed up codes.exfret wrote:I was doing something way far out with r^2, and something unexpected happened:
Look at the ends of its orbit, it creates a sort of 'wave' thing. Why is this? Is this just mis-precision? Also, I noticed that when you go across the screen (drag the mouse), the part you were already looking at becomes brighter (probably due to drawing the lines again).Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 2,Qual: 1,Zoom: 0.1,xSet: -1219.65,ySet: -1756.35], [x0: -30,y0: 50,vx: 0,vy: 0,t0: 0,who: 1,m: 1000], [x0: 5166.2,y0: 4582.2,vx: 0.14,vy: -0.17,t0: 10,who: 3,m: 0]
Ah, why is it a regular pattern? Well, we've got two periods... one being the time it takes the planet to orbit the star (or get flung wildly, in this case). Let's say that's 1.00 seconds. The other is the time between frames in the game... it's a lot smaller than the first time span, so let's say it's .09 seconds.exfret wrote:First of all, I can understand your explanation of why some lines go further than others, but why is it in such a regular, oscillating patter? That is my real question to you.
Secondly, I thought that maybe the redrawing of lines was just because you didn't draw over the previous lines, so they were still there when you redrew them or something like that. Of course, you have a better idea of how your code works than I do.
I'll wish you a whole Happy Weak (force)exfret wrote:Finally, Have a Happy Tauesday!!!
Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 2,Qual: 2,Zoom: .5,xSet: 1,ySet: 0], [x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: -100,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: 100,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: 0,y0: -100,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: 0,y0: 100,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: -72,y0: 72,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: 72,y0: -72,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: -72,y0: -72,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: 72,y0: 72,vx: 0,vy: 0,t0: 0,who: 1,m: 5000]
Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 2,Qual: 2,Zoom: 3.04,xSet: 168,ySet: -187], [x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: -100,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: 100,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: 0,y0: -100,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: 0,y0: 100,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: -72,y0: 72,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: 72,y0: -72,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: -72,y0: -72,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: 72,y0: 72,vx: 0,vy: 0,t0: 0,who: 1,m: 5000], [x0: -131,y0: 238,vx: 3.65,vy: -4.2,t0: 0,who: 3,m: 0]
Code: Select all
Gravity Fun at TestTubeGames.com: [ForceG: 2,Qual: 2,Zoom: 3.04,xSet: 168,ySet: -187], [x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 5000],[x0: -131,y0: 238,vx: 3.65,vy: -4.2,t0: 0,who: 3,m: 0]
Okay, first off, that face is awesome!DavidAllyn68 wrote:![]()
-Dave