@galacean/engine 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/browser.js +21 -3
- package/dist/browser.min.js +1 -1
- package/dist/main.js +1 -1
- package/dist/miniprogram.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +5 -5
package/dist/browser.js
CHANGED
|
@@ -18870,7 +18870,8 @@
|
|
|
18870
18870
|
/**
|
|
18871
18871
|
* @internal
|
|
18872
18872
|
*/ _proto._destroy = function _destroy() {
|
|
18873
|
-
this._nativeMaterial.destroy();
|
|
18873
|
+
!this._destroyed && this._nativeMaterial.destroy();
|
|
18874
|
+
this._destroyed = true;
|
|
18874
18875
|
};
|
|
18875
18876
|
_create_class$3(PhysicsMaterial, [
|
|
18876
18877
|
{
|
|
@@ -19413,7 +19414,6 @@
|
|
|
19413
19414
|
__decorate$1([
|
|
19414
19415
|
ignoreClone
|
|
19415
19416
|
], BoxColliderShape.prototype, "_size", void 0);
|
|
19416
|
-
console.log("Hello, world!");
|
|
19417
19417
|
/**
|
|
19418
19418
|
* Physical collider shape for sphere.
|
|
19419
19419
|
*/ var SphereColliderShape = /*#__PURE__*/ function(ColliderShape) {
|
|
@@ -20140,6 +20140,23 @@
|
|
|
20140
20140
|
};
|
|
20141
20141
|
/**
|
|
20142
20142
|
* @internal
|
|
20143
|
+
*/ _proto._onUpdate = function _onUpdate() {
|
|
20144
|
+
if (this._updateFlag.flag) {
|
|
20145
|
+
var transform = this.entity.transform;
|
|
20146
|
+
if (this.isKinematic) {
|
|
20147
|
+
this._nativeCollider.move(transform.worldPosition, transform.worldRotationQuaternion);
|
|
20148
|
+
} else {
|
|
20149
|
+
this._nativeCollider.setWorldTransform(transform.worldPosition, transform.worldRotationQuaternion);
|
|
20150
|
+
}
|
|
20151
|
+
var worldScale = transform.lossyWorldScale;
|
|
20152
|
+
for(var i = 0, n = this.shapes.length; i < n; i++){
|
|
20153
|
+
this.shapes[i]._nativeShape.setWorldScale(worldScale);
|
|
20154
|
+
}
|
|
20155
|
+
this._updateFlag.flag = false;
|
|
20156
|
+
}
|
|
20157
|
+
};
|
|
20158
|
+
/**
|
|
20159
|
+
* @internal
|
|
20143
20160
|
*/ _proto._onLateUpdate = function _onLateUpdate() {
|
|
20144
20161
|
var transform = this.entity.transform;
|
|
20145
20162
|
var worldPosition = transform.worldPosition, worldRotationQuaternion = transform.worldRotationQuaternion;
|
|
@@ -29548,6 +29565,7 @@
|
|
|
29548
29565
|
var state = playState.state;
|
|
29549
29566
|
var clipDuration = state.clip.length;
|
|
29550
29567
|
if (this.speed * state.speed >= 0) {
|
|
29568
|
+
console.log(999, clipTime, lastClipTime);
|
|
29551
29569
|
if (clipTime < lastClipTime) {
|
|
29552
29570
|
this._checkSubTransition(playState, transitions, layerIndex, lastClipTime, state.clipEndTime * clipDuration);
|
|
29553
29571
|
playState.currentTransitionIndex = 0;
|
|
@@ -38859,7 +38877,7 @@
|
|
|
38859
38877
|
], GALACEAN_animation_event);
|
|
38860
38878
|
|
|
38861
38879
|
//@ts-ignore
|
|
38862
|
-
var version = "0.0.0-experimental-double11.
|
|
38880
|
+
var version = "0.0.0-experimental-double11.4";
|
|
38863
38881
|
console.log("Galacean engine version: " + version);
|
|
38864
38882
|
for(var key in CoreObjects){
|
|
38865
38883
|
Loader.registerClass(key, CoreObjects[key]);
|