Chipmunk-js
Chipmunk-js copied to clipboard
Bug in Node js
If space don't have static objects, in 2565 lines in cp.js file
if(this.root) subtreeQuery(this.root, bb, func);
this - global node js object, and it have root property. And the condition is true, although this don't cp.BBTree. Additional check on the this instanceof cp.BBTree solves the problem.
https://github.com/josephg/Chipmunk-js/pull/34
Maybe this can help you.
Thanks to appcrash that works fine with me