Click here to Skip to main content
15,892,674 members

Comments by Kevnar (Top 11 by date)

Kevnar 11-Jan-12 11:15am View    
Yup. I was just fooling around with dots on a screen. Turns out it's been done much better than I could ever do. Thanks for your help.
Kevnar 10-Jan-12 18:57pm View    
Since the answers were pretty much the same, I accepted them both. Thanks for your help. The gravity and inertia have been implemented. Now I just have to figure out why the particles are getting flung out into space instead of falling into orbit around a source of gravity. ...Or maybe that's exactly what they're supposed to do. :-/
Kevnar 10-Jan-12 14:59pm View    
So this is the same as I suggested above, assuming (x - x0) equates to the factor of 2, I'd given and (y - y0) equates to the factor of 3. The time component would be simply 1.
Kevnar 10-Jan-12 14:55pm View    
Isn't this the same as I suggested above? I'm just assuming the time is "1", as in 1 tick of the program's clock.

And yes, the velocity is inherent in the vector. (2 pixels / second on the x axis, and 3 pixels / second on the y). By this formula the velocity would be 3.60, no?
Kevnar 20-Dec-11 14:01pm View    
Yes, that fixed it. I'd just discovered that solution myself and I came to post the answer, but you saved me the trouble. I'll have to include the sapi package in the distribution. Thanks.