This experiment was done in 2009 using Box2DJS[1] for the site Chrome Experiments[2]. Since then I've been improving it by cleaning up the code, adding DevideOrientation support and, some weeks ago, updated it to the new google.com design.
Fun fact: The API being used has been deprecated for a while and, as far as I know, there is no alternative.
[1] http://box2d-js.sourceforge.net/ [2] http://www.chromeexperiments.com/
> Fun fact: The API being used has been deprecated for a while and, as far as I know, there is no alternative.
Amazing that it works on non-Chrome as well, then! (opera, in my case)
(also, hi! small world)
Mr. Skrebbel! :)
Yes. Chrome Experiments is not about Chrome-specific experiments but about pushing Javascript and the new cross-browser APIs.
I always try to use APIs supported by more than one browser. It just happened that it performed much faster on Chrome than any other browser for a year or so (until the other browsers catched up).
Good to see that, 2 years after relase, people on Firefox/Opera/IE can finally see the thing properly ;)
Yeah, good thing Box2D doesn't change a whole lot in itself, and is pretty complete. Recent commits have mainly been small refactoring changes.
Re:Google Gravity
by Mithrandir on Monday September 05, 2011 @07:18AM
(#2961893)
Thanks for clarifying! It's a really great idea!
https://code.google.com/p/box2dweb/
http://www.atomitware.tk/games/box2dwebdemo.html
Pretty cool. Type something into the search box, press enter and see what happens. :)