@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 +20 -2
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +20 -2
- package/dist/module.js +20 -2
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/physics/PhysicsMaterial.d.ts +1 -0
package/dist/miniprogram.js
CHANGED
|
@@ -14174,7 +14174,8 @@ var Collision = function Collision() {
|
|
|
14174
14174
|
/**
|
|
14175
14175
|
* @internal
|
|
14176
14176
|
*/ _proto._destroy = function _destroy() {
|
|
14177
|
-
this._nativeMaterial.destroy();
|
|
14177
|
+
!this._destroyed && this._nativeMaterial.destroy();
|
|
14178
|
+
this._destroyed = true;
|
|
14178
14179
|
};
|
|
14179
14180
|
_create_class(PhysicsMaterial, [
|
|
14180
14181
|
{
|
|
@@ -14723,7 +14724,6 @@ __decorate([
|
|
|
14723
14724
|
ignoreClone
|
|
14724
14725
|
], BoxColliderShape.prototype, "_size", void 0);
|
|
14725
14726
|
|
|
14726
|
-
console.log("Hello, world!");
|
|
14727
14727
|
/**
|
|
14728
14728
|
* Physical collider shape for sphere.
|
|
14729
14729
|
*/ var SphereColliderShape = /*#__PURE__*/ function(ColliderShape) {
|
|
@@ -15463,6 +15463,23 @@ __decorate([
|
|
|
15463
15463
|
};
|
|
15464
15464
|
/**
|
|
15465
15465
|
* @internal
|
|
15466
|
+
*/ _proto._onUpdate = function _onUpdate() {
|
|
15467
|
+
if (this._updateFlag.flag) {
|
|
15468
|
+
var transform = this.entity.transform;
|
|
15469
|
+
if (this.isKinematic) {
|
|
15470
|
+
this._nativeCollider.move(transform.worldPosition, transform.worldRotationQuaternion);
|
|
15471
|
+
} else {
|
|
15472
|
+
this._nativeCollider.setWorldTransform(transform.worldPosition, transform.worldRotationQuaternion);
|
|
15473
|
+
}
|
|
15474
|
+
var worldScale = transform.lossyWorldScale;
|
|
15475
|
+
for(var i = 0, n = this.shapes.length; i < n; i++){
|
|
15476
|
+
this.shapes[i]._nativeShape.setWorldScale(worldScale);
|
|
15477
|
+
}
|
|
15478
|
+
this._updateFlag.flag = false;
|
|
15479
|
+
}
|
|
15480
|
+
};
|
|
15481
|
+
/**
|
|
15482
|
+
* @internal
|
|
15466
15483
|
*/ _proto._onLateUpdate = function _onLateUpdate() {
|
|
15467
15484
|
var transform = this.entity.transform;
|
|
15468
15485
|
var worldPosition = transform.worldPosition, worldRotationQuaternion = transform.worldRotationQuaternion;
|
|
@@ -24972,6 +24989,7 @@ exports.AnimatorLayerBlendingMode = void 0;
|
|
|
24972
24989
|
var state = playState.state;
|
|
24973
24990
|
var clipDuration = state.clip.length;
|
|
24974
24991
|
if (this.speed * state.speed >= 0) {
|
|
24992
|
+
console.log(999, clipTime, lastClipTime);
|
|
24975
24993
|
if (clipTime < lastClipTime) {
|
|
24976
24994
|
this._checkSubTransition(playState, transitions, layerIndex, lastClipTime, state.clipEndTime * clipDuration);
|
|
24977
24995
|
playState.currentTransitionIndex = 0;
|
package/dist/module.js
CHANGED
|
@@ -14169,7 +14169,8 @@ var Collision = function Collision() {
|
|
|
14169
14169
|
/**
|
|
14170
14170
|
* @internal
|
|
14171
14171
|
*/ _proto._destroy = function _destroy() {
|
|
14172
|
-
this._nativeMaterial.destroy();
|
|
14172
|
+
!this._destroyed && this._nativeMaterial.destroy();
|
|
14173
|
+
this._destroyed = true;
|
|
14173
14174
|
};
|
|
14174
14175
|
_create_class(PhysicsMaterial, [
|
|
14175
14176
|
{
|
|
@@ -14718,7 +14719,6 @@ __decorate([
|
|
|
14718
14719
|
ignoreClone
|
|
14719
14720
|
], BoxColliderShape.prototype, "_size", void 0);
|
|
14720
14721
|
|
|
14721
|
-
console.log("Hello, world!");
|
|
14722
14722
|
/**
|
|
14723
14723
|
* Physical collider shape for sphere.
|
|
14724
14724
|
*/ var SphereColliderShape = /*#__PURE__*/ function(ColliderShape) {
|
|
@@ -15458,6 +15458,23 @@ __decorate([
|
|
|
15458
15458
|
};
|
|
15459
15459
|
/**
|
|
15460
15460
|
* @internal
|
|
15461
|
+
*/ _proto._onUpdate = function _onUpdate() {
|
|
15462
|
+
if (this._updateFlag.flag) {
|
|
15463
|
+
var transform = this.entity.transform;
|
|
15464
|
+
if (this.isKinematic) {
|
|
15465
|
+
this._nativeCollider.move(transform.worldPosition, transform.worldRotationQuaternion);
|
|
15466
|
+
} else {
|
|
15467
|
+
this._nativeCollider.setWorldTransform(transform.worldPosition, transform.worldRotationQuaternion);
|
|
15468
|
+
}
|
|
15469
|
+
var worldScale = transform.lossyWorldScale;
|
|
15470
|
+
for(var i = 0, n = this.shapes.length; i < n; i++){
|
|
15471
|
+
this.shapes[i]._nativeShape.setWorldScale(worldScale);
|
|
15472
|
+
}
|
|
15473
|
+
this._updateFlag.flag = false;
|
|
15474
|
+
}
|
|
15475
|
+
};
|
|
15476
|
+
/**
|
|
15477
|
+
* @internal
|
|
15461
15478
|
*/ _proto._onLateUpdate = function _onLateUpdate() {
|
|
15462
15479
|
var transform = this.entity.transform;
|
|
15463
15480
|
var worldPosition = transform.worldPosition, worldRotationQuaternion = transform.worldRotationQuaternion;
|
|
@@ -24967,6 +24984,7 @@ var AnimatorLayerBlendingMode;
|
|
|
24967
24984
|
var state = playState.state;
|
|
24968
24985
|
var clipDuration = state.clip.length;
|
|
24969
24986
|
if (this.speed * state.speed >= 0) {
|
|
24987
|
+
console.log(999, clipTime, lastClipTime);
|
|
24970
24988
|
if (clipTime < lastClipTime) {
|
|
24971
24989
|
this._checkSubTransition(playState, transitions, layerIndex, lastClipTime, state.clipEndTime * clipDuration);
|
|
24972
24990
|
playState.currentTransitionIndex = 0;
|