Planck.js - Rewrite of Box2D for JavaScript

Discuss issues specific the Javascript port of Box2D
Posts: 1
Joined: Sun Mar 12, 2017 11:09 pm

Planck.js - Rewrite of Box2D for JavaScript

Postby shakiba » Sun Mar 12, 2017 11:30 pm


I have manually ported/rewritten Box2D for JavaScript. It includes almost entire Box2D code, a new simple HTML5 testbed and almost all of Box2D examples.

I have slightly modified the API to follow JavaScript conventions. Box2D algorithm are reimplemented without modification, but there has been many refactoring (some were done to improve performance, some were subjective and some were unnecessary!).

Planck.js is available on GitHub.

Your feedback is greatly appreciated!


Posts: 1
Joined: Mon Oct 02, 2017 8:50 pm

Re: Planck.js - Rewrite of Box2D for JavaScript

Postby lananh92 » Mon Oct 02, 2017 9:08 pm

Posts: 3
Joined: Fri Oct 13, 2017 3:46 am

Re: Planck.js - Rewrite of Box2D for JavaScript

Postby warbarons » Fri Oct 13, 2017 3:52 am

Went through all the other ports I could find but they were all missing certain things.
Your is working great. My setup was complaining about ASSERT for never being defined (I had to add a define it) and DEBUG which may be because I use webpack and a bunch of other node nodules. After building the word DEBUG is replaced by (true) which results in some error so had to replace DEBUG with another variable.

Other than that everything is working great. Thanks a lot and impressive work!

Return to “Javascript”

Who is online

Users browsing this forum: No registered users and 1 guest