@galacean/engine 1.1.0-beta.7 → 1.1.0-beta.8
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 +328 -56
- 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
|
@@ -5520,6 +5520,7 @@
|
|
|
5520
5520
|
for(var i = 0; i < length; i++){
|
|
5521
5521
|
CloneManager.cloneProperty(sourceProperty, targetPropertyA, i, cloneMode);
|
|
5522
5522
|
}
|
|
5523
|
+
break;
|
|
5523
5524
|
default:
|
|
5524
5525
|
var _target, _k;
|
|
5525
5526
|
var targetOProperty = (_target = target)[_k = k] || (_target[_k] = new sourceProperty.constructor());
|
|
@@ -7769,14 +7770,14 @@
|
|
|
7769
7770
|
}
|
|
7770
7771
|
return end;
|
|
7771
7772
|
};
|
|
7772
|
-
_proto.forEach = function forEach(callbackFn) {
|
|
7773
|
+
_proto.forEach = function forEach(callbackFn, swapFn) {
|
|
7773
7774
|
this._startLoop();
|
|
7774
7775
|
var elements = this._elements;
|
|
7775
7776
|
for(var i = 0; i < this.length; i++){
|
|
7776
7777
|
var element = elements[i];
|
|
7777
7778
|
element && callbackFn(element);
|
|
7778
7779
|
}
|
|
7779
|
-
this._endLoop();
|
|
7780
|
+
this._endLoop(swapFn);
|
|
7780
7781
|
};
|
|
7781
7782
|
_proto.forEachAndClean = function forEachAndClean(callbackFn) {
|
|
7782
7783
|
this._startLoop();
|
|
@@ -7793,16 +7794,24 @@
|
|
|
7793
7794
|
_proto._startLoop = function _startLoop() {
|
|
7794
7795
|
this._isLooping = true;
|
|
7795
7796
|
};
|
|
7796
|
-
_proto._endLoop = function _endLoop() {
|
|
7797
|
+
_proto._endLoop = function _endLoop(swapFn) {
|
|
7797
7798
|
this._isLooping = false;
|
|
7798
7799
|
if (this._blankCount) {
|
|
7800
|
+
var from = 0;
|
|
7801
|
+
var to = this.length - 1;
|
|
7799
7802
|
var elements = this._elements;
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7803
|
+
partition: do {
|
|
7804
|
+
while(elements[from])if (++from >= to) {
|
|
7805
|
+
break partition;
|
|
7806
|
+
}
|
|
7807
|
+
while(!elements[to])if (from >= --to) {
|
|
7808
|
+
break partition;
|
|
7809
|
+
}
|
|
7810
|
+
var swapElement = elements[to];
|
|
7811
|
+
swapFn(swapElement, from);
|
|
7812
|
+
elements[from++] = swapElement;
|
|
7813
|
+
elements[to--] = null;
|
|
7814
|
+
}while (from < to);
|
|
7806
7815
|
this.length -= this._blankCount;
|
|
7807
7816
|
this._blankCount = 0;
|
|
7808
7817
|
}
|
|
@@ -18049,11 +18058,15 @@
|
|
|
18049
18058
|
if (this._currentEnteredEntity) {
|
|
18050
18059
|
this._currentEnteredEntity._scripts.forEach(function(element) {
|
|
18051
18060
|
element.onPointerExit(_this);
|
|
18061
|
+
}, function(element, index) {
|
|
18062
|
+
element._entityScriptsIndex = index;
|
|
18052
18063
|
});
|
|
18053
18064
|
}
|
|
18054
18065
|
if (rayCastEntity) {
|
|
18055
18066
|
rayCastEntity._scripts.forEach(function(element) {
|
|
18056
18067
|
element.onPointerEnter(_this);
|
|
18068
|
+
}, function(element, index) {
|
|
18069
|
+
element._entityScriptsIndex = index;
|
|
18057
18070
|
});
|
|
18058
18071
|
}
|
|
18059
18072
|
this._currentEnteredEntity = rayCastEntity;
|
|
@@ -18066,6 +18079,8 @@
|
|
|
18066
18079
|
if (rayCastEntity) {
|
|
18067
18080
|
rayCastEntity._scripts.forEach(function(element) {
|
|
18068
18081
|
element.onPointerDown(_this);
|
|
18082
|
+
}, function(element, index) {
|
|
18083
|
+
element._entityScriptsIndex = index;
|
|
18069
18084
|
});
|
|
18070
18085
|
}
|
|
18071
18086
|
this._currentPressedEntity = rayCastEntity;
|
|
@@ -18077,6 +18092,8 @@
|
|
|
18077
18092
|
if (this._currentPressedEntity) {
|
|
18078
18093
|
this._currentPressedEntity._scripts.forEach(function(element) {
|
|
18079
18094
|
element.onPointerDrag(_this);
|
|
18095
|
+
}, function(element, index) {
|
|
18096
|
+
element._entityScriptsIndex = index;
|
|
18080
18097
|
});
|
|
18081
18098
|
}
|
|
18082
18099
|
};
|
|
@@ -18090,6 +18107,8 @@
|
|
|
18090
18107
|
pressedEntity._scripts.forEach(function(element) {
|
|
18091
18108
|
sameTarget && element.onPointerClick(_this);
|
|
18092
18109
|
element.onPointerUp(_this);
|
|
18110
|
+
}, function(element, index) {
|
|
18111
|
+
element._entityScriptsIndex = index;
|
|
18093
18112
|
});
|
|
18094
18113
|
this._currentPressedEntity = null;
|
|
18095
18114
|
}
|
|
@@ -18657,11 +18676,24 @@
|
|
|
18657
18676
|
};
|
|
18658
18677
|
/**
|
|
18659
18678
|
* @internal
|
|
18679
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
18680
|
+
var shapes = target._shapes;
|
|
18681
|
+
for(var i = 0, n = shapes.length; i < n; i++){
|
|
18682
|
+
target._addPhysicsShape(shapes[i]);
|
|
18683
|
+
}
|
|
18684
|
+
};
|
|
18685
|
+
/**
|
|
18686
|
+
* @internal
|
|
18660
18687
|
*/ _proto._onDestroy = function _onDestroy() {
|
|
18661
18688
|
Component1.prototype._onDestroy.call(this);
|
|
18662
18689
|
this.clearShapes();
|
|
18663
18690
|
this._nativeCollider.destroy();
|
|
18664
18691
|
};
|
|
18692
|
+
_proto._addPhysicsShape = function _addPhysicsShape(shape) {
|
|
18693
|
+
shape._collider = this;
|
|
18694
|
+
this._nativeCollider.addShape(shape._nativeShape);
|
|
18695
|
+
this._phasedActiveInScene && this.scene.physics._addColliderShape(shape);
|
|
18696
|
+
};
|
|
18665
18697
|
_create_class$3(Collider, [
|
|
18666
18698
|
{
|
|
18667
18699
|
key: "shapes",
|
|
@@ -18677,6 +18709,15 @@
|
|
|
18677
18709
|
__decorate$1([
|
|
18678
18710
|
ignoreClone
|
|
18679
18711
|
], exports.Collider.prototype, "_index", void 0);
|
|
18712
|
+
__decorate$1([
|
|
18713
|
+
ignoreClone
|
|
18714
|
+
], exports.Collider.prototype, "_nativeCollider", void 0);
|
|
18715
|
+
__decorate$1([
|
|
18716
|
+
ignoreClone
|
|
18717
|
+
], exports.Collider.prototype, "_updateFlag", void 0);
|
|
18718
|
+
__decorate$1([
|
|
18719
|
+
deepClone
|
|
18720
|
+
], exports.Collider.prototype, "_shapes", void 0);
|
|
18680
18721
|
exports.Collider = __decorate$1([
|
|
18681
18722
|
dependentComponents(Transform, exports.DependentMode.CheckOnly)
|
|
18682
18723
|
], exports.Collider);
|
|
@@ -18698,11 +18739,15 @@
|
|
|
18698
18739
|
var collision = PhysicsScene._collision;
|
|
18699
18740
|
collision.shape = shape2;
|
|
18700
18741
|
element.onCollisionEnter(collision);
|
|
18742
|
+
}, function(element, index) {
|
|
18743
|
+
element._entityScriptsIndex = index;
|
|
18701
18744
|
});
|
|
18702
18745
|
shape2.collider.entity._scripts.forEach(function(element) {
|
|
18703
18746
|
var collision = PhysicsScene._collision;
|
|
18704
18747
|
collision.shape = shape1;
|
|
18705
18748
|
element.onCollisionEnter(collision);
|
|
18749
|
+
}, function(element, index) {
|
|
18750
|
+
element._entityScriptsIndex = index;
|
|
18706
18751
|
});
|
|
18707
18752
|
};
|
|
18708
18753
|
this._onContactExit = function(obj1, obj2) {
|
|
@@ -18713,11 +18758,15 @@
|
|
|
18713
18758
|
var collision = PhysicsScene._collision;
|
|
18714
18759
|
collision.shape = shape2;
|
|
18715
18760
|
element.onCollisionExit(collision);
|
|
18761
|
+
}, function(element, index) {
|
|
18762
|
+
element._entityScriptsIndex = index;
|
|
18716
18763
|
});
|
|
18717
18764
|
shape2.collider.entity._scripts.forEach(function(element) {
|
|
18718
18765
|
var collision = PhysicsScene._collision;
|
|
18719
18766
|
collision.shape = shape1;
|
|
18720
18767
|
element.onCollisionExit(collision);
|
|
18768
|
+
}, function(element, index) {
|
|
18769
|
+
element._entityScriptsIndex = index;
|
|
18721
18770
|
});
|
|
18722
18771
|
};
|
|
18723
18772
|
this._onContactStay = function(obj1, obj2) {
|
|
@@ -18728,11 +18777,15 @@
|
|
|
18728
18777
|
var collision = PhysicsScene._collision;
|
|
18729
18778
|
collision.shape = shape2;
|
|
18730
18779
|
element.onCollisionStay(collision);
|
|
18780
|
+
}, function(element, index) {
|
|
18781
|
+
element._entityScriptsIndex = index;
|
|
18731
18782
|
});
|
|
18732
18783
|
shape2.collider.entity._scripts.forEach(function(element) {
|
|
18733
18784
|
var collision = PhysicsScene._collision;
|
|
18734
18785
|
collision.shape = shape1;
|
|
18735
18786
|
element.onCollisionStay(collision);
|
|
18787
|
+
}, function(element, index) {
|
|
18788
|
+
element._entityScriptsIndex = index;
|
|
18736
18789
|
});
|
|
18737
18790
|
};
|
|
18738
18791
|
this._onTriggerEnter = function(obj1, obj2) {
|
|
@@ -18741,9 +18794,13 @@
|
|
|
18741
18794
|
var shape2 = physicalObjectsMap[obj2];
|
|
18742
18795
|
shape1.collider.entity._scripts.forEach(function(element) {
|
|
18743
18796
|
element.onTriggerEnter(shape2);
|
|
18797
|
+
}, function(element, index) {
|
|
18798
|
+
element._entityScriptsIndex = index;
|
|
18744
18799
|
});
|
|
18745
18800
|
shape2.collider.entity._scripts.forEach(function(element) {
|
|
18746
18801
|
element.onTriggerEnter(shape1);
|
|
18802
|
+
}, function(element, index) {
|
|
18803
|
+
element._entityScriptsIndex = index;
|
|
18747
18804
|
});
|
|
18748
18805
|
};
|
|
18749
18806
|
this._onTriggerExit = function(obj1, obj2) {
|
|
@@ -18752,9 +18809,13 @@
|
|
|
18752
18809
|
var shape2 = physicalObjectsMap[obj2];
|
|
18753
18810
|
shape1.collider.entity._scripts.forEach(function(element) {
|
|
18754
18811
|
element.onTriggerExit(shape2);
|
|
18812
|
+
}, function(element, index) {
|
|
18813
|
+
element._entityScriptsIndex = index;
|
|
18755
18814
|
});
|
|
18756
18815
|
shape2.collider.entity._scripts.forEach(function(element) {
|
|
18757
18816
|
element.onTriggerExit(shape1);
|
|
18817
|
+
}, function(element, index) {
|
|
18818
|
+
element._entityScriptsIndex = index;
|
|
18758
18819
|
});
|
|
18759
18820
|
};
|
|
18760
18821
|
this._onTriggerStay = function(obj1, obj2) {
|
|
@@ -18763,9 +18824,13 @@
|
|
|
18763
18824
|
var shape2 = physicalObjectsMap[obj2];
|
|
18764
18825
|
shape1.collider.entity._scripts.forEach(function(element) {
|
|
18765
18826
|
element.onTriggerStay(shape2);
|
|
18827
|
+
}, function(element, index) {
|
|
18828
|
+
element._entityScriptsIndex = index;
|
|
18766
18829
|
});
|
|
18767
18830
|
shape2.collider.entity._scripts.forEach(function(element) {
|
|
18768
18831
|
element.onTriggerStay(shape1);
|
|
18832
|
+
}, function(element, index) {
|
|
18833
|
+
element._entityScriptsIndex = index;
|
|
18769
18834
|
});
|
|
18770
18835
|
};
|
|
18771
18836
|
this._scene = scene;
|
|
@@ -18798,6 +18863,9 @@
|
|
|
18798
18863
|
}
|
|
18799
18864
|
var onRaycast = function onRaycast(obj) {
|
|
18800
18865
|
var shape = _this._scene.engine._physicalObjectsMap[obj];
|
|
18866
|
+
if (!shape) {
|
|
18867
|
+
return false;
|
|
18868
|
+
}
|
|
18801
18869
|
return shape.collider.entity.layer & layerMask && shape.isSceneQuery;
|
|
18802
18870
|
};
|
|
18803
18871
|
if (hitResult != undefined) {
|
|
@@ -19020,7 +19088,6 @@
|
|
|
19020
19088
|
*/ _proto._onLateUpdate = function _onLateUpdate() {
|
|
19021
19089
|
var position = this.entity.transform.worldPosition;
|
|
19022
19090
|
this._nativeCollider.getWorldPosition(position);
|
|
19023
|
-
this.entity.transform.worldPosition = position;
|
|
19024
19091
|
this._updateFlag.flag = false;
|
|
19025
19092
|
};
|
|
19026
19093
|
/**
|
|
@@ -19176,6 +19243,25 @@
|
|
|
19176
19243
|
this._nativeCollider.getWorldTransform(worldPosition, worldRotationQuaternion);
|
|
19177
19244
|
this._updateFlag.flag = false;
|
|
19178
19245
|
};
|
|
19246
|
+
/**
|
|
19247
|
+
* @internal
|
|
19248
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
19249
|
+
Collider1.prototype._cloneTo.call(this, target);
|
|
19250
|
+
target.linearDamping = this.linearDamping;
|
|
19251
|
+
target.angularDamping = this.angularDamping;
|
|
19252
|
+
target.linearVelocity = this.linearVelocity;
|
|
19253
|
+
target.angularVelocity = this.angularVelocity;
|
|
19254
|
+
target.mass = this.mass;
|
|
19255
|
+
target.centerOfMass = this.centerOfMass;
|
|
19256
|
+
target.inertiaTensor = this.inertiaTensor;
|
|
19257
|
+
target.maxAngularVelocity = this.maxAngularVelocity;
|
|
19258
|
+
target.maxDepenetrationVelocity = this.maxDepenetrationVelocity;
|
|
19259
|
+
target.sleepThreshold = this.sleepThreshold;
|
|
19260
|
+
target.solverIterations = this.solverIterations;
|
|
19261
|
+
target.isKinematic = this.isKinematic;
|
|
19262
|
+
target.constraints = this.constraints;
|
|
19263
|
+
target.collisionDetectionMode = this.collisionDetectionMode;
|
|
19264
|
+
};
|
|
19179
19265
|
_proto._setLinearVelocity = function _setLinearVelocity() {
|
|
19180
19266
|
this._nativeCollider.setLinearVelocity(this._linearVelocity);
|
|
19181
19267
|
};
|
|
@@ -19384,6 +19470,48 @@
|
|
|
19384
19470
|
]);
|
|
19385
19471
|
return DynamicCollider;
|
|
19386
19472
|
}(exports.Collider);
|
|
19473
|
+
__decorate$1([
|
|
19474
|
+
ignoreClone
|
|
19475
|
+
], DynamicCollider.prototype, "_linearDamping", void 0);
|
|
19476
|
+
__decorate$1([
|
|
19477
|
+
ignoreClone
|
|
19478
|
+
], DynamicCollider.prototype, "_angularDamping", void 0);
|
|
19479
|
+
__decorate$1([
|
|
19480
|
+
ignoreClone
|
|
19481
|
+
], DynamicCollider.prototype, "_linearVelocity", void 0);
|
|
19482
|
+
__decorate$1([
|
|
19483
|
+
ignoreClone
|
|
19484
|
+
], DynamicCollider.prototype, "_angularVelocity", void 0);
|
|
19485
|
+
__decorate$1([
|
|
19486
|
+
ignoreClone
|
|
19487
|
+
], DynamicCollider.prototype, "_mass", void 0);
|
|
19488
|
+
__decorate$1([
|
|
19489
|
+
ignoreClone
|
|
19490
|
+
], DynamicCollider.prototype, "_centerOfMass", void 0);
|
|
19491
|
+
__decorate$1([
|
|
19492
|
+
ignoreClone
|
|
19493
|
+
], DynamicCollider.prototype, "_inertiaTensor", void 0);
|
|
19494
|
+
__decorate$1([
|
|
19495
|
+
ignoreClone
|
|
19496
|
+
], DynamicCollider.prototype, "_maxAngularVelocity", void 0);
|
|
19497
|
+
__decorate$1([
|
|
19498
|
+
ignoreClone
|
|
19499
|
+
], DynamicCollider.prototype, "_maxDepenetrationVelocity", void 0);
|
|
19500
|
+
__decorate$1([
|
|
19501
|
+
ignoreClone
|
|
19502
|
+
], DynamicCollider.prototype, "_solverIterations", void 0);
|
|
19503
|
+
__decorate$1([
|
|
19504
|
+
ignoreClone
|
|
19505
|
+
], DynamicCollider.prototype, "_isKinematic", void 0);
|
|
19506
|
+
__decorate$1([
|
|
19507
|
+
ignoreClone
|
|
19508
|
+
], DynamicCollider.prototype, "_constraints", void 0);
|
|
19509
|
+
__decorate$1([
|
|
19510
|
+
ignoreClone
|
|
19511
|
+
], DynamicCollider.prototype, "_collisionDetectionMode", void 0);
|
|
19512
|
+
__decorate$1([
|
|
19513
|
+
ignoreClone
|
|
19514
|
+
], DynamicCollider.prototype, "_sleepThreshold", void 0);
|
|
19387
19515
|
exports.CollisionDetectionMode = void 0;
|
|
19388
19516
|
(function(CollisionDetectionMode) {
|
|
19389
19517
|
CollisionDetectionMode[CollisionDetectionMode["Discrete"] = 0] = "Discrete";
|
|
@@ -19433,7 +19561,8 @@
|
|
|
19433
19561
|
/**
|
|
19434
19562
|
* @internal
|
|
19435
19563
|
*/ _proto._destroy = function _destroy() {
|
|
19436
|
-
this._nativeMaterial.destroy();
|
|
19564
|
+
!this._destroyed && this._nativeMaterial.destroy();
|
|
19565
|
+
this._destroyed = true;
|
|
19437
19566
|
};
|
|
19438
19567
|
_create_class$3(PhysicsMaterial, [
|
|
19439
19568
|
{
|
|
@@ -19543,25 +19672,38 @@
|
|
|
19543
19672
|
var Joint = function Joint(entity) {
|
|
19544
19673
|
var _this;
|
|
19545
19674
|
_this = Component1.call(this, entity) || this;
|
|
19546
|
-
_this.
|
|
19547
|
-
_this.
|
|
19675
|
+
_this._colliderInfo = new JointColliderInfo();
|
|
19676
|
+
_this._connectedColliderInfo = new JointColliderInfo();
|
|
19548
19677
|
_this._force = 0;
|
|
19549
19678
|
_this._torque = 0;
|
|
19550
|
-
_this.
|
|
19679
|
+
_this._connectedColliderInfo.localPosition = new Vector3();
|
|
19551
19680
|
return _this;
|
|
19552
19681
|
};
|
|
19553
19682
|
_inherits$2(Joint, Component1);
|
|
19683
|
+
var _proto = Joint.prototype;
|
|
19684
|
+
/**
|
|
19685
|
+
* @internal
|
|
19686
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
19687
|
+
target.connectedCollider = this.connectedCollider;
|
|
19688
|
+
target.connectedAnchor = this.connectedAnchor;
|
|
19689
|
+
target.connectedMassScale = this.connectedMassScale;
|
|
19690
|
+
target.connectedInertiaScale = this.connectedInertiaScale;
|
|
19691
|
+
target.massScale = this.massScale;
|
|
19692
|
+
target.inertiaScale = this.inertiaScale;
|
|
19693
|
+
target.breakForce = this.breakForce;
|
|
19694
|
+
target.breakTorque = this.breakTorque;
|
|
19695
|
+
};
|
|
19554
19696
|
_create_class$3(Joint, [
|
|
19555
19697
|
{
|
|
19556
19698
|
key: "connectedCollider",
|
|
19557
19699
|
get: /**
|
|
19558
19700
|
* The connected collider.
|
|
19559
19701
|
*/ function get() {
|
|
19560
|
-
return this.
|
|
19702
|
+
return this._connectedColliderInfo.collider;
|
|
19561
19703
|
},
|
|
19562
19704
|
set: function set(value) {
|
|
19563
|
-
if (this.
|
|
19564
|
-
this.
|
|
19705
|
+
if (this._connectedColliderInfo.collider !== value) {
|
|
19706
|
+
this._connectedColliderInfo.collider = value;
|
|
19565
19707
|
this._nativeJoint.setConnectedCollider(value._nativeCollider);
|
|
19566
19708
|
}
|
|
19567
19709
|
}
|
|
@@ -19572,10 +19714,10 @@
|
|
|
19572
19714
|
* The connected anchor position.
|
|
19573
19715
|
* @remarks If connectedCollider is set, this anchor is relative offset, or the anchor is world position.
|
|
19574
19716
|
*/ function get() {
|
|
19575
|
-
return this.
|
|
19717
|
+
return this._connectedColliderInfo.localPosition;
|
|
19576
19718
|
},
|
|
19577
19719
|
set: function set(value) {
|
|
19578
|
-
var connectedAnchor = this.
|
|
19720
|
+
var connectedAnchor = this._connectedColliderInfo.localPosition;
|
|
19579
19721
|
if (value !== connectedAnchor) {
|
|
19580
19722
|
connectedAnchor.copyFrom(value);
|
|
19581
19723
|
}
|
|
@@ -19587,11 +19729,11 @@
|
|
|
19587
19729
|
get: /**
|
|
19588
19730
|
* The scale to apply to the inverse mass of collider 0 for resolving this constraint.
|
|
19589
19731
|
*/ function get() {
|
|
19590
|
-
return this.
|
|
19732
|
+
return this._connectedColliderInfo.massScale;
|
|
19591
19733
|
},
|
|
19592
19734
|
set: function set(value) {
|
|
19593
|
-
if (value !== this.
|
|
19594
|
-
this.
|
|
19735
|
+
if (value !== this._connectedColliderInfo.massScale) {
|
|
19736
|
+
this._connectedColliderInfo.massScale = value;
|
|
19595
19737
|
this._nativeJoint.setConnectedMassScale(value);
|
|
19596
19738
|
}
|
|
19597
19739
|
}
|
|
@@ -19601,11 +19743,11 @@
|
|
|
19601
19743
|
get: /**
|
|
19602
19744
|
* The scale to apply to the inverse inertia of collider0 for resolving this constraint.
|
|
19603
19745
|
*/ function get() {
|
|
19604
|
-
return this.
|
|
19746
|
+
return this._connectedColliderInfo.inertiaScale;
|
|
19605
19747
|
},
|
|
19606
19748
|
set: function set(value) {
|
|
19607
|
-
if (value !== this.
|
|
19608
|
-
this.
|
|
19749
|
+
if (value !== this._connectedColliderInfo.inertiaScale) {
|
|
19750
|
+
this._connectedColliderInfo.inertiaScale = value;
|
|
19609
19751
|
this._nativeJoint.setConnectedInertiaScale(value);
|
|
19610
19752
|
}
|
|
19611
19753
|
}
|
|
@@ -19615,11 +19757,11 @@
|
|
|
19615
19757
|
get: /**
|
|
19616
19758
|
* The scale to apply to the inverse mass of collider 1 for resolving this constraint.
|
|
19617
19759
|
*/ function get() {
|
|
19618
|
-
return this.
|
|
19760
|
+
return this._colliderInfo.massScale;
|
|
19619
19761
|
},
|
|
19620
19762
|
set: function set(value) {
|
|
19621
|
-
if (value !== this.
|
|
19622
|
-
this.
|
|
19763
|
+
if (value !== this._colliderInfo.massScale) {
|
|
19764
|
+
this._colliderInfo.massScale = value;
|
|
19623
19765
|
this._nativeJoint.setMassScale(value);
|
|
19624
19766
|
}
|
|
19625
19767
|
}
|
|
@@ -19629,11 +19771,11 @@
|
|
|
19629
19771
|
get: /**
|
|
19630
19772
|
* The scale to apply to the inverse inertia of collider1 for resolving this constraint.
|
|
19631
19773
|
*/ function get() {
|
|
19632
|
-
return this.
|
|
19774
|
+
return this._colliderInfo.inertiaScale;
|
|
19633
19775
|
},
|
|
19634
19776
|
set: function set(value) {
|
|
19635
|
-
if (value !== this.
|
|
19636
|
-
this.
|
|
19777
|
+
if (value !== this._colliderInfo.inertiaScale) {
|
|
19778
|
+
this._colliderInfo.inertiaScale = value;
|
|
19637
19779
|
this._nativeJoint.setInertiaScale(value);
|
|
19638
19780
|
}
|
|
19639
19781
|
}
|
|
@@ -19669,12 +19811,27 @@
|
|
|
19669
19811
|
]);
|
|
19670
19812
|
return Joint;
|
|
19671
19813
|
}(Component);
|
|
19814
|
+
__decorate$1([
|
|
19815
|
+
ignoreClone
|
|
19816
|
+
], exports.Joint.prototype, "_colliderInfo", void 0);
|
|
19817
|
+
__decorate$1([
|
|
19818
|
+
ignoreClone
|
|
19819
|
+
], exports.Joint.prototype, "_connectedColliderInfo", void 0);
|
|
19820
|
+
__decorate$1([
|
|
19821
|
+
ignoreClone
|
|
19822
|
+
], exports.Joint.prototype, "_nativeJoint", void 0);
|
|
19823
|
+
__decorate$1([
|
|
19824
|
+
ignoreClone
|
|
19825
|
+
], exports.Joint.prototype, "_force", void 0);
|
|
19826
|
+
__decorate$1([
|
|
19827
|
+
ignoreClone
|
|
19828
|
+
], exports.Joint.prototype, "_torque", void 0);
|
|
19672
19829
|
exports.Joint = __decorate$1([
|
|
19673
19830
|
dependentComponents(exports.Collider, exports.DependentMode.CheckOnly)
|
|
19674
19831
|
], exports.Joint);
|
|
19675
19832
|
/**
|
|
19676
19833
|
* @internal
|
|
19677
|
-
*/ var
|
|
19834
|
+
*/ var JointColliderInfo = function JointColliderInfo() {
|
|
19678
19835
|
this.collider = null;
|
|
19679
19836
|
this.massScale = 0;
|
|
19680
19837
|
this.inertiaScale = 0;
|
|
@@ -19690,7 +19847,7 @@
|
|
|
19690
19847
|
/**
|
|
19691
19848
|
* @internal
|
|
19692
19849
|
*/ _proto._onAwake = function _onAwake() {
|
|
19693
|
-
var collider = this.
|
|
19850
|
+
var collider = this._colliderInfo;
|
|
19694
19851
|
collider.collider = this.entity.getComponent(exports.Collider);
|
|
19695
19852
|
this._nativeJoint = PhysicsScene._nativePhysics.createFixedJoint(collider.collider._nativeCollider);
|
|
19696
19853
|
};
|
|
@@ -19722,11 +19879,22 @@
|
|
|
19722
19879
|
/**
|
|
19723
19880
|
* @internal
|
|
19724
19881
|
*/ _proto._onAwake = function _onAwake() {
|
|
19725
|
-
var collider = this.
|
|
19882
|
+
var collider = this._colliderInfo;
|
|
19726
19883
|
collider.localPosition = new Vector3();
|
|
19727
19884
|
collider.collider = this.entity.getComponent(exports.Collider);
|
|
19728
19885
|
this._nativeJoint = PhysicsScene._nativePhysics.createHingeJoint(collider.collider._nativeCollider);
|
|
19729
19886
|
};
|
|
19887
|
+
/**
|
|
19888
|
+
* @internal
|
|
19889
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
19890
|
+
target.axis = this.axis;
|
|
19891
|
+
target.swingOffset = this.swingOffset;
|
|
19892
|
+
target.useLimits = this.useLimits;
|
|
19893
|
+
target.useMotor = this.useMotor;
|
|
19894
|
+
target.useSpring = this.useSpring;
|
|
19895
|
+
target.motor = this.motor;
|
|
19896
|
+
target.limits = this.limits;
|
|
19897
|
+
};
|
|
19730
19898
|
_create_class$3(HingeJoint, [
|
|
19731
19899
|
{
|
|
19732
19900
|
key: "axis",
|
|
@@ -19748,10 +19916,10 @@
|
|
|
19748
19916
|
get: /**
|
|
19749
19917
|
* The swing offset.
|
|
19750
19918
|
*/ function get() {
|
|
19751
|
-
return this.
|
|
19919
|
+
return this._colliderInfo.localPosition;
|
|
19752
19920
|
},
|
|
19753
19921
|
set: function set(value) {
|
|
19754
|
-
var swingOffset = this.
|
|
19922
|
+
var swingOffset = this._colliderInfo.localPosition;
|
|
19755
19923
|
if (value !== swingOffset) {
|
|
19756
19924
|
swingOffset.copyFrom(value);
|
|
19757
19925
|
}
|
|
@@ -19854,6 +20022,21 @@
|
|
|
19854
20022
|
]);
|
|
19855
20023
|
return HingeJoint;
|
|
19856
20024
|
}(exports.Joint);
|
|
20025
|
+
__decorate$1([
|
|
20026
|
+
ignoreClone
|
|
20027
|
+
], HingeJoint.prototype, "_axis", void 0);
|
|
20028
|
+
__decorate$1([
|
|
20029
|
+
ignoreClone
|
|
20030
|
+
], HingeJoint.prototype, "_hingeFlags", void 0);
|
|
20031
|
+
__decorate$1([
|
|
20032
|
+
ignoreClone
|
|
20033
|
+
], HingeJoint.prototype, "_useSpring", void 0);
|
|
20034
|
+
__decorate$1([
|
|
20035
|
+
ignoreClone
|
|
20036
|
+
], HingeJoint.prototype, "_jointMonitor", void 0);
|
|
20037
|
+
__decorate$1([
|
|
20038
|
+
ignoreClone
|
|
20039
|
+
], HingeJoint.prototype, "_limits", void 0);
|
|
19857
20040
|
/**
|
|
19858
20041
|
* A joint that maintains an upper or lower bound (or both) on the distance between two points on different objects.
|
|
19859
20042
|
*/ var SpringJoint = /*#__PURE__*/ function(Joint1) {
|
|
@@ -19872,21 +20055,31 @@
|
|
|
19872
20055
|
/**
|
|
19873
20056
|
* @internal
|
|
19874
20057
|
*/ _proto._onAwake = function _onAwake() {
|
|
19875
|
-
var collider = this.
|
|
20058
|
+
var collider = this._colliderInfo;
|
|
19876
20059
|
collider.localPosition = new Vector3();
|
|
19877
20060
|
collider.collider = this.entity.getComponent(exports.Collider);
|
|
19878
20061
|
this._nativeJoint = PhysicsScene._nativePhysics.createSpringJoint(collider.collider._nativeCollider);
|
|
19879
20062
|
};
|
|
20063
|
+
/**
|
|
20064
|
+
* @internal
|
|
20065
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
20066
|
+
target.swingOffset = this.swingOffset;
|
|
20067
|
+
target.minDistance = this.minDistance;
|
|
20068
|
+
target.maxDistance = this.maxDistance;
|
|
20069
|
+
target.tolerance = this.tolerance;
|
|
20070
|
+
target.stiffness = this.stiffness;
|
|
20071
|
+
target.damping = this.damping;
|
|
20072
|
+
};
|
|
19880
20073
|
_create_class$3(SpringJoint, [
|
|
19881
20074
|
{
|
|
19882
20075
|
key: "swingOffset",
|
|
19883
20076
|
get: /**
|
|
19884
20077
|
* The swing offset.
|
|
19885
20078
|
*/ function get() {
|
|
19886
|
-
return this.
|
|
20079
|
+
return this._colliderInfo.localPosition;
|
|
19887
20080
|
},
|
|
19888
20081
|
set: function set(value) {
|
|
19889
|
-
var swingOffset = this.
|
|
20082
|
+
var swingOffset = this._colliderInfo.localPosition;
|
|
19890
20083
|
if (value !== swingOffset) {
|
|
19891
20084
|
swingOffset.copyFrom(value);
|
|
19892
20085
|
}
|
|
@@ -20008,6 +20201,15 @@
|
|
|
20008
20201
|
var _proto = ColliderShape.prototype;
|
|
20009
20202
|
/**
|
|
20010
20203
|
* @internal
|
|
20204
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
20205
|
+
target.contactOffset = this.contactOffset;
|
|
20206
|
+
target.rotation = this.rotation;
|
|
20207
|
+
target.position = this.position;
|
|
20208
|
+
target.isTrigger = this.isTrigger;
|
|
20209
|
+
target.material = this.material;
|
|
20210
|
+
};
|
|
20211
|
+
/**
|
|
20212
|
+
* @internal
|
|
20011
20213
|
*/ _proto._destroy = function _destroy() {
|
|
20012
20214
|
this._material._destroy();
|
|
20013
20215
|
this._nativeShape.destroy();
|
|
@@ -20109,6 +20311,30 @@
|
|
|
20109
20311
|
(function() {
|
|
20110
20312
|
ColliderShape._idGenerator = 0;
|
|
20111
20313
|
})();
|
|
20314
|
+
__decorate$1([
|
|
20315
|
+
ignoreClone
|
|
20316
|
+
], ColliderShape.prototype, "_collider", void 0);
|
|
20317
|
+
__decorate$1([
|
|
20318
|
+
ignoreClone
|
|
20319
|
+
], ColliderShape.prototype, "_nativeShape", void 0);
|
|
20320
|
+
__decorate$1([
|
|
20321
|
+
ignoreClone
|
|
20322
|
+
], ColliderShape.prototype, "_id", void 0);
|
|
20323
|
+
__decorate$1([
|
|
20324
|
+
ignoreClone
|
|
20325
|
+
], ColliderShape.prototype, "_material", void 0);
|
|
20326
|
+
__decorate$1([
|
|
20327
|
+
ignoreClone
|
|
20328
|
+
], ColliderShape.prototype, "_isTrigger", void 0);
|
|
20329
|
+
__decorate$1([
|
|
20330
|
+
ignoreClone
|
|
20331
|
+
], ColliderShape.prototype, "_rotation", void 0);
|
|
20332
|
+
__decorate$1([
|
|
20333
|
+
ignoreClone
|
|
20334
|
+
], ColliderShape.prototype, "_position", void 0);
|
|
20335
|
+
__decorate$1([
|
|
20336
|
+
ignoreClone
|
|
20337
|
+
], ColliderShape.prototype, "_contactOffset", void 0);
|
|
20112
20338
|
/**
|
|
20113
20339
|
* Physical collider shape for box.
|
|
20114
20340
|
*/ var BoxColliderShape = /*#__PURE__*/ function(ColliderShape1) {
|
|
@@ -20124,6 +20350,12 @@
|
|
|
20124
20350
|
};
|
|
20125
20351
|
_inherits$2(BoxColliderShape, ColliderShape1);
|
|
20126
20352
|
var _proto = BoxColliderShape.prototype;
|
|
20353
|
+
/**
|
|
20354
|
+
* @internal
|
|
20355
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
20356
|
+
ColliderShape1.prototype._cloneTo.call(this, target);
|
|
20357
|
+
target.size = this.size;
|
|
20358
|
+
};
|
|
20127
20359
|
_proto._setSize = function _setSize() {
|
|
20128
20360
|
this._nativeShape.setSize(this._size);
|
|
20129
20361
|
};
|
|
@@ -20144,6 +20376,9 @@
|
|
|
20144
20376
|
]);
|
|
20145
20377
|
return BoxColliderShape;
|
|
20146
20378
|
}(ColliderShape);
|
|
20379
|
+
__decorate$1([
|
|
20380
|
+
ignoreClone
|
|
20381
|
+
], BoxColliderShape.prototype, "_size", void 0);
|
|
20147
20382
|
/**
|
|
20148
20383
|
* Physical collider shape for sphere.
|
|
20149
20384
|
*/ var SphereColliderShape = /*#__PURE__*/ function(ColliderShape1) {
|
|
@@ -20155,6 +20390,11 @@
|
|
|
20155
20390
|
return _this;
|
|
20156
20391
|
};
|
|
20157
20392
|
_inherits$2(SphereColliderShape, ColliderShape1);
|
|
20393
|
+
var _proto = SphereColliderShape.prototype;
|
|
20394
|
+
_proto._cloneTo = function _cloneTo(target) {
|
|
20395
|
+
ColliderShape1.prototype._cloneTo.call(this, target);
|
|
20396
|
+
target.radius = this.radius;
|
|
20397
|
+
};
|
|
20158
20398
|
_create_class$3(SphereColliderShape, [
|
|
20159
20399
|
{
|
|
20160
20400
|
key: "radius",
|
|
@@ -20173,6 +20413,9 @@
|
|
|
20173
20413
|
]);
|
|
20174
20414
|
return SphereColliderShape;
|
|
20175
20415
|
}(ColliderShape);
|
|
20416
|
+
__decorate$1([
|
|
20417
|
+
ignoreClone
|
|
20418
|
+
], SphereColliderShape.prototype, "_radius", void 0);
|
|
20176
20419
|
/**
|
|
20177
20420
|
* Physical collider shape plane.
|
|
20178
20421
|
*/ var PlaneColliderShape = /*#__PURE__*/ function(ColliderShape1) {
|
|
@@ -20198,6 +20441,15 @@
|
|
|
20198
20441
|
return _this;
|
|
20199
20442
|
};
|
|
20200
20443
|
_inherits$2(CapsuleColliderShape, ColliderShape1);
|
|
20444
|
+
var _proto = CapsuleColliderShape.prototype;
|
|
20445
|
+
/**
|
|
20446
|
+
* @internal
|
|
20447
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
20448
|
+
ColliderShape1.prototype._cloneTo.call(this, target);
|
|
20449
|
+
target.radius = this.radius;
|
|
20450
|
+
target.height = this.height;
|
|
20451
|
+
target.upAxis = this.upAxis;
|
|
20452
|
+
};
|
|
20201
20453
|
_create_class$3(CapsuleColliderShape, [
|
|
20202
20454
|
{
|
|
20203
20455
|
key: "radius",
|
|
@@ -20244,6 +20496,15 @@
|
|
|
20244
20496
|
]);
|
|
20245
20497
|
return CapsuleColliderShape;
|
|
20246
20498
|
}(ColliderShape);
|
|
20499
|
+
__decorate$1([
|
|
20500
|
+
ignoreClone
|
|
20501
|
+
], CapsuleColliderShape.prototype, "_radius", void 0);
|
|
20502
|
+
__decorate$1([
|
|
20503
|
+
ignoreClone
|
|
20504
|
+
], CapsuleColliderShape.prototype, "_height", void 0);
|
|
20505
|
+
__decorate$1([
|
|
20506
|
+
ignoreClone
|
|
20507
|
+
], CapsuleColliderShape.prototype, "_upAxis", void 0);
|
|
20247
20508
|
/**
|
|
20248
20509
|
* Pointer Manager.
|
|
20249
20510
|
* @internal
|
|
@@ -21974,33 +22235,37 @@
|
|
|
21974
22235
|
};
|
|
21975
22236
|
_proto.callScriptOnUpdate = function callScriptOnUpdate(deltaTime) {
|
|
21976
22237
|
this._onUpdateScripts.forEach(function(element) {
|
|
21977
|
-
|
|
21978
|
-
|
|
21979
|
-
|
|
22238
|
+
element._started && element.onUpdate(deltaTime);
|
|
22239
|
+
}, function(element, index) {
|
|
22240
|
+
element._onUpdateIndex = index;
|
|
21980
22241
|
});
|
|
21981
22242
|
};
|
|
21982
22243
|
_proto.callScriptOnLateUpdate = function callScriptOnLateUpdate(deltaTime) {
|
|
21983
22244
|
this._onLateUpdateScripts.forEach(function(element) {
|
|
21984
|
-
|
|
21985
|
-
|
|
21986
|
-
|
|
22245
|
+
element._started && element.onLateUpdate(deltaTime);
|
|
22246
|
+
}, function(element, index) {
|
|
22247
|
+
element._onLateUpdateIndex = index;
|
|
21987
22248
|
});
|
|
21988
22249
|
};
|
|
21989
22250
|
_proto.callScriptOnPhysicsUpdate = function callScriptOnPhysicsUpdate() {
|
|
21990
22251
|
this._onPhysicsUpdateScripts.forEach(function(element) {
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
22252
|
+
element._started && element.onPhysicsUpdate();
|
|
22253
|
+
}, function(element, index) {
|
|
22254
|
+
element._onPhysicsUpdateIndex = index;
|
|
21994
22255
|
});
|
|
21995
22256
|
};
|
|
21996
22257
|
_proto.callAnimationUpdate = function callAnimationUpdate(deltaTime) {
|
|
21997
22258
|
this._onUpdateAnimations.forEach(function(element) {
|
|
21998
22259
|
element.engine.time.frameCount > element._playFrameCount && element.update(deltaTime);
|
|
22260
|
+
}, function(element, index) {
|
|
22261
|
+
element._onUpdateIndex = index;
|
|
21999
22262
|
});
|
|
22000
22263
|
};
|
|
22001
22264
|
_proto.callRendererOnUpdate = function callRendererOnUpdate(deltaTime) {
|
|
22002
22265
|
this._onUpdateRenderers.forEach(function(element) {
|
|
22003
22266
|
element.update(deltaTime);
|
|
22267
|
+
}, function(element, index) {
|
|
22268
|
+
element._onUpdateIndex = index;
|
|
22004
22269
|
});
|
|
22005
22270
|
};
|
|
22006
22271
|
_proto.handlingInvalidScripts = function handlingInvalidScripts() {
|
|
@@ -22018,11 +22283,15 @@
|
|
|
22018
22283
|
_proto.callCameraOnBeginRender = function callCameraOnBeginRender(camera) {
|
|
22019
22284
|
camera.entity._scripts.forEach(function(element) {
|
|
22020
22285
|
element.onBeginRender(camera);
|
|
22286
|
+
}, function(element, index) {
|
|
22287
|
+
element._entityScriptsIndex = index;
|
|
22021
22288
|
});
|
|
22022
22289
|
};
|
|
22023
22290
|
_proto.callCameraOnEndRender = function callCameraOnEndRender(camera) {
|
|
22024
22291
|
camera.entity._scripts.forEach(function(element) {
|
|
22025
22292
|
element.onEndRender(camera);
|
|
22293
|
+
}, function(element, index) {
|
|
22294
|
+
element._entityScriptsIndex = index;
|
|
22026
22295
|
});
|
|
22027
22296
|
};
|
|
22028
22297
|
_proto.getActiveChangedTempList = function getActiveChangedTempList() {
|
|
@@ -28829,6 +29098,9 @@
|
|
|
28829
29098
|
this.property = property;
|
|
28830
29099
|
this.component = target.getComponent(type);
|
|
28831
29100
|
this.cureType = cureType;
|
|
29101
|
+
var isBlendShape = _instanceof1$2(this.component, SkinnedMeshRenderer);
|
|
29102
|
+
// @todo: Temp solution with blendShape
|
|
29103
|
+
this._isCopyMode = cureType._isCopyMode && !isBlendShape;
|
|
28832
29104
|
var assemblerType = AnimationCurveOwner.getAssemblerType(type, property);
|
|
28833
29105
|
this._assembler = new assemblerType();
|
|
28834
29106
|
this._assembler.initialize(this);
|
|
@@ -28860,7 +29132,7 @@
|
|
|
28860
29132
|
this._assembler.setTargetValue(this.defaultValue);
|
|
28861
29133
|
};
|
|
28862
29134
|
_proto.getEvaluateValue = function getEvaluateValue(out) {
|
|
28863
|
-
if (this.
|
|
29135
|
+
if (this._isCopyMode) {
|
|
28864
29136
|
this.cureType._setValue(this.baseEvaluateData.value, out);
|
|
28865
29137
|
return out;
|
|
28866
29138
|
} else {
|
|
@@ -28868,14 +29140,14 @@
|
|
|
28868
29140
|
}
|
|
28869
29141
|
};
|
|
28870
29142
|
_proto.saveDefaultValue = function saveDefaultValue() {
|
|
28871
|
-
if (this.
|
|
29143
|
+
if (this._isCopyMode) {
|
|
28872
29144
|
this.cureType._setValue(this.referenceTargetValue, this.defaultValue);
|
|
28873
29145
|
} else {
|
|
28874
29146
|
this.defaultValue = this._assembler.getTargetValue();
|
|
28875
29147
|
}
|
|
28876
29148
|
};
|
|
28877
29149
|
_proto.saveFixedPoseValue = function saveFixedPoseValue() {
|
|
28878
|
-
if (this.
|
|
29150
|
+
if (this._isCopyMode) {
|
|
28879
29151
|
this.cureType._setValue(this.referenceTargetValue, this.fixedPoseValue);
|
|
28880
29152
|
} else {
|
|
28881
29153
|
this.fixedPoseValue = this._assembler.getTargetValue();
|
|
@@ -28884,7 +29156,7 @@
|
|
|
28884
29156
|
_proto.applyValue = function applyValue(value, weight, additive) {
|
|
28885
29157
|
var cureType = this.cureType;
|
|
28886
29158
|
if (additive) {
|
|
28887
|
-
if (
|
|
29159
|
+
if (this._isCopyMode) {
|
|
28888
29160
|
cureType._additiveValue(value, weight, this.referenceTargetValue);
|
|
28889
29161
|
} else {
|
|
28890
29162
|
var assembler = this._assembler;
|
|
@@ -28894,13 +29166,13 @@
|
|
|
28894
29166
|
}
|
|
28895
29167
|
} else {
|
|
28896
29168
|
if (weight === 1.0) {
|
|
28897
|
-
if (
|
|
29169
|
+
if (this._isCopyMode) {
|
|
28898
29170
|
cureType._setValue(value, this.referenceTargetValue);
|
|
28899
29171
|
} else {
|
|
28900
29172
|
this._assembler.setTargetValue(value);
|
|
28901
29173
|
}
|
|
28902
29174
|
} else {
|
|
28903
|
-
if (
|
|
29175
|
+
if (this._isCopyMode) {
|
|
28904
29176
|
var targetValue = this.referenceTargetValue;
|
|
28905
29177
|
cureType._lerpValue(targetValue, value, weight, targetValue);
|
|
28906
29178
|
} else {
|
|
@@ -28912,7 +29184,7 @@
|
|
|
28912
29184
|
}
|
|
28913
29185
|
};
|
|
28914
29186
|
_proto._lerpValue = function _lerpValue(srcValue, destValue, crossWeight) {
|
|
28915
|
-
if (this.
|
|
29187
|
+
if (this._isCopyMode) {
|
|
28916
29188
|
return this.cureType._lerpValue(srcValue, destValue, crossWeight, this.baseEvaluateData.value);
|
|
28917
29189
|
} else {
|
|
28918
29190
|
this.baseEvaluateData.value = this.cureType._lerpValue(srcValue, destValue, crossWeight);
|
|
@@ -43007,7 +43279,7 @@
|
|
|
43007
43279
|
], GALACEAN_animation_event);
|
|
43008
43280
|
|
|
43009
43281
|
//@ts-ignore
|
|
43010
|
-
var version = "1.1.0-beta.
|
|
43282
|
+
var version = "1.1.0-beta.8";
|
|
43011
43283
|
console.log("Galacean engine version: " + version);
|
|
43012
43284
|
for(var key in CoreObjects){
|
|
43013
43285
|
Loader.registerClass(key, CoreObjects[key]);
|