Drag elements around with gravity effect

前提是你 提交于 2020-01-01 05:05:09

问题


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) ?


回答1:


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/




回答2:


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



来源:https://stackoverflow.com/questions/2185850/drag-elements-around-with-gravity-effect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!