开发者

Simulating a Ball Rolling Down a Slope - HTML5 Canvas JavaScript

How can I simulate a ball rolling开发者_开发知识库 down a given slope using HTML5 canvas and JavaScript? Can someone provide code as to how to do this?


This might not be exactly what you're looking for, but the defacto standard for javascript-based physics is called Box2DJS.

You can find it here: http://box2d-js.sourceforge.net/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜