[]求cannon.js对应的ts版本

哪位大神用过cannon.js?使用经验请分享一下,谢谢
已邀请:

Aar0n

赞同来自:

可以网上查用ts 调用 js 的方法去调他。

五月

赞同来自:

可尝试注释掉初始化的两个分支如下
 
function (e) {
    // if ("object" == typeof exports && "undefined" != typeof module)
    //   module.exports = e();
    // else if ("function" == typeof define && false)
    //   define([], e);
    // else {
    var f;
    "undefined" != typeof window ? f = window : "undefined" != typeof global ? f = global : "undefined" != typeof self && (f = self),
        f.CANNON = e()
    // }
}

要回复问题请先

商务合作
商务合作