mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
18 lines
347 B
JavaScript
18 lines
347 B
JavaScript
let box2d = require('../../../external/box2d/box2d');
|
|
|
|
window.b2 = {};
|
|
if (CC_QQPLAY) {
|
|
// can only define global variable in this way
|
|
b2 = window.b2;
|
|
}
|
|
|
|
for (var key in box2d) {
|
|
if (key.indexOf('b2_') !== -1) {
|
|
continue;
|
|
}
|
|
let newKey = key.replace('b2', '');
|
|
b2[newKey] = box2d[key];
|
|
}
|
|
|
|
b2.maxPolygonVertices = 8;
|