Reputation: 21
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?
Upvotes: 0
Views: 3628
Reputation: 5097
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/
Upvotes: 2