简体   繁体   English

用重力效果拖动元素

[英]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/ 我想完成类似于photoshop.com和本网站的内容: http//mrdoob.com/projects/chromeexperiments/google_gravity/

Does anyone know how to do this with javascript (preferably jquery) ? 有谁知道如何使用javascript(最好是jquery)?

I think the google example used Box2Djs . 我认为谷歌的例子使用了Box2Djs I have used box2d for python and its great. 我使用box2d for python,它很棒。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM