[code]
get angularVelocity() {
if (this._btColliderObject) {
var phtqua = this._btColliderObject.angularVelocity;
this._angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z);
}
return this._angularVelocity;
}
get totalForce() {
if (this._btColliderObject) {
var btTotalForce = this.btColliderObject.force;
this._totalForce.setValue(btTotalForce.x, btTotalForce.y, btTotalForce.z);
return this._totalForce;
}
return null;
}[/code]CannonRigidbody3D类中需要把这两个属性的获取方法改成这样就好了!之前的方法存在死循环。