Page 1 of 1

Planck.js - Rewrite of Box2D for JavaScript

Posted: Sun Mar 12, 2017 11:30 pm
by shakiba
Hello,

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!

-Ali

Re: Planck.js - Rewrite of Box2D for JavaScript

Posted: Mon Oct 02, 2017 9:08 pm
by lananh92

Re: Planck.js - Rewrite of Box2D for JavaScript

Posted: Fri Oct 13, 2017 3:52 am
by warbarons
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!