@galacean/engine-core 0.0.0-experimental-double11.5 → 0.0.0-experimental-double11.6

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
@@ -14509,6 +14509,23 @@ var Collision = function Collision() {
14509
14509
  target.constraints = this.constraints;
14510
14510
  target.collisionDetectionMode = this.collisionDetectionMode;
14511
14511
  };
14512
+ /**
14513
+ * @internal
14514
+ */ _proto._onUpdate = function _onUpdate() {
14515
+ if (this._updateFlag.flag) {
14516
+ var transform = this.entity.transform;
14517
+ if (this.isKinematic) {
14518
+ this._nativeCollider.move(transform.worldPosition, transform.worldRotationQuaternion);
14519
+ } else {
14520
+ this._nativeCollider.setWorldTransform(transform.worldPosition, transform.worldRotationQuaternion);
14521
+ }
14522
+ var worldScale = transform.lossyWorldScale;
14523
+ for(var i = 0, n = this.shapes.length; i < n; i++){
14524
+ this.shapes[i]._nativeShape.setWorldScale(worldScale);
14525
+ }
14526
+ this._updateFlag.flag = false;
14527
+ }
14528
+ };
14512
14529
  _proto._setLinearVelocity = function _setLinearVelocity() {
14513
14530
  this._nativeCollider.setLinearVelocity(this._linearVelocity);
14514
14531
  };