A JavaScript 2D physics engine.

npm install p2
1 downloads in the last day
3 downloads in the last week
9 downloads in the last month


JavaScript 2D physics engine.


See examples.

How to build

p2.js is built with Grunt. Grunt is a npm module. Once you have npm, run this to install grunt globally.

$> npm install -g grunt-cli

Then, in the folder where you have downloaded the source, install the build dependencies using npm:

$> npm install

Then build:

$> grunt
npm loves you