[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 。希望团队能够考虑研究一下。
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 。希望团队能够考虑研究一下。
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Laya_Fred
赞同来自: