[0]2.12.1.beta cannon.js 中 applyforce 无效Bug的补丁。

laya.cannonPhysics.js 14915行,变量使用错误,会导致 angularVelocity属性无限嵌套。 修复如下
 
   get angularVelocity() {
        if (this._btColliderObject) {
            var phtqua = this._btColliderObject.angularVelocity;
 -           this.angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z);
 +          this._angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z);
        }
        return this._angularVelocity;
    }
 
另外啰嗦几句:我在另外一篇帖子提出了一个建议,就是希望让演示demo 更加贴近实际使用场景,尽量将引擎提供的特性都演示一下,这样一方面能提升引擎release时的质量,另外也会降低新人学习门槛。 https://ask.layabox.com/question/49379  。希望团队能够考虑研究一下。
已邀请:

Laya_Fred

赞同来自:

感谢您的问题反馈,我们已经记录了您提出的建议,对于每条建议我们都会进行研究,再次感谢~

要回复问题请先

商务合作
商务合作