News for hackers. Stuff that matters.
Re:Cursor Gravity by paulbaumgart on Monday March 16, 2009 @01:53AM (#517824)
It's surprisingly fun for such a simple little thing, especially since the lack of friction makes it so much more compelling than the "marble in a bowl" demonstration I got when I was a kid.
Re:Cursor Gravity by ilaksh on Monday March 16, 2009 @08:09AM (#518034)
Would work fine in IE if he just added the ExplorerCanvas js file (from Google) http://excanvas.sourceforge.net/
Re:Cursor Gravity by tome on Monday March 16, 2009 @05:00AM (#517923)
He's used the Euler method, which I think is why you get aberrant behaviour when the cursor comes near the particle:

http://en.wikipedia.org/wiki/Euler's_method#Error

Re:Cursor Gravity by extension on Monday March 16, 2009 @05:36AM (#517938)
This also serves as a good repro of a Firefox memory leak (watch your task manager while it's running). There won't be many usable canvas apps until their JS engine is tightened up or replaced.
Re:Cursor Gravity by allocativeeffic on Monday March 16, 2009 @08:06AM (#518031)
No, it gcs after a while. Memory usage steadily climbs until it hits a certain point and then drops back down.
Re:Cursor Gravity by aristus on Monday March 16, 2009 @03:19AM (#517869)
I used to do this with a large magnet and a little chip off the magnet... accidentally figured out how orbits work. Fun times. :)
Re:Cursor Gravity by pmjordan on Monday March 16, 2009 @05:52AM (#517947)
Nice little toy, but what's the next level? 2 objects, try to get a stable orbit? Talk about a steep difficulty curve. (http://en.wikipedia.org/wiki/N-body_problem)