Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drag elements around with gravity effect

I want to accomplish something similar to what photoshop.com has and this site here: http://mrdoob.com/projects/chromeexperiments/google_gravity/

Does anyone know how to do this with javascript (preferably jquery) ?

like image 533
Adam Avatar asked Feb 02 '10 16:02

Adam


2 Answers

A jPhysics demo can be found online at http://www.inf.ufrgs.br/~rcpinto/physics/ and downloaded from http://plugins.jquery.com/project/jphysics or from Google at http://code.google.com/p/jqueryphysics/

like image 120
Sampson Avatar answered Nov 02 '22 00:11

Sampson


I think the google example used Box2Djs. I have used box2d for python and its great.

like image 1
David Raznick Avatar answered Nov 02 '22 01:11

David Raznick