Mitchell
Mitchell

Reputation: 21

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?

Upvotes: 0

Views: 3628

Answers (1)

Kevin Dolan
Kevin Dolan

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

Related Questions