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