@galacean/engine-core 0.0.0-experimental-double11.3 → 0.0.0-experimental-double11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -15462,6 +15462,23 @@ __decorate([
15462
15462
  };
15463
15463
  /**
15464
15464
  * @internal
15465
+ */ _proto._onUpdate = function _onUpdate() {
15466
+ if (this._updateFlag.flag) {
15467
+ var transform = this.entity.transform;
15468
+ if (this.isKinematic) {
15469
+ this._nativeCollider.move(transform.worldPosition, transform.worldRotationQuaternion);
15470
+ } else {
15471
+ this._nativeCollider.setWorldTransform(transform.worldPosition, transform.worldRotationQuaternion);
15472
+ }
15473
+ var worldScale = transform.lossyWorldScale;
15474
+ for(var i = 0, n = this.shapes.length; i < n; i++){
15475
+ this.shapes[i]._nativeShape.setWorldScale(worldScale);
15476
+ }
15477
+ this._updateFlag.flag = false;
15478
+ }
15479
+ };
15480
+ /**
15481
+ * @internal
15465
15482
  */ _proto._onLateUpdate = function _onLateUpdate() {
15466
15483
  var transform = this.entity.transform;
15467
15484
  var worldPosition = transform.worldPosition, worldRotationQuaternion = transform.worldRotationQuaternion;