@galacean/engine-core 0.0.0-experimental-double11.2 → 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
@@ -14173,7 +14173,8 @@ var Collision = function Collision() {
14173
14173
  /**
14174
14174
  * @internal
14175
14175
  */ _proto._destroy = function _destroy() {
14176
- this._nativeMaterial.destroy();
14176
+ !this._destroyed && this._nativeMaterial.destroy();
14177
+ this._destroyed = true;
14177
14178
  };
14178
14179
  _create_class(PhysicsMaterial, [
14179
14180
  {
@@ -14722,7 +14723,6 @@ __decorate([
14722
14723
  ignoreClone
14723
14724
  ], BoxColliderShape.prototype, "_size", void 0);
14724
14725
 
14725
- console.log("Hello, world!");
14726
14726
  /**
14727
14727
  * Physical collider shape for sphere.
14728
14728
  */ var SphereColliderShape = /*#__PURE__*/ function(ColliderShape) {
@@ -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;
@@ -24971,6 +24988,7 @@ exports.AnimatorLayerBlendingMode = void 0;
24971
24988
  var state = playState.state;
24972
24989
  var clipDuration = state.clip.length;
24973
24990
  if (this.speed * state.speed >= 0) {
24991
+ console.log(999, clipTime, lastClipTime);
24974
24992
  if (clipTime < lastClipTime) {
24975
24993
  this._checkSubTransition(playState, transitions, layerIndex, lastClipTime, state.clipEndTime * clipDuration);
24976
24994
  playState.currentTransitionIndex = 0;