@galacean/engine 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/browser.js +18 -1
- 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
|
@@ -19262,6 +19262,23 @@
|
|
|
19262
19262
|
target.constraints = this.constraints;
|
|
19263
19263
|
target.collisionDetectionMode = this.collisionDetectionMode;
|
|
19264
19264
|
};
|
|
19265
|
+
/**
|
|
19266
|
+
* @internal
|
|
19267
|
+
*/ _proto._onUpdate = function _onUpdate() {
|
|
19268
|
+
if (this._updateFlag.flag) {
|
|
19269
|
+
var transform = this.entity.transform;
|
|
19270
|
+
if (this.isKinematic) {
|
|
19271
|
+
this._nativeCollider.move(transform.worldPosition, transform.worldRotationQuaternion);
|
|
19272
|
+
} else {
|
|
19273
|
+
this._nativeCollider.setWorldTransform(transform.worldPosition, transform.worldRotationQuaternion);
|
|
19274
|
+
}
|
|
19275
|
+
var worldScale = transform.lossyWorldScale;
|
|
19276
|
+
for(var i = 0, n = this.shapes.length; i < n; i++){
|
|
19277
|
+
this.shapes[i]._nativeShape.setWorldScale(worldScale);
|
|
19278
|
+
}
|
|
19279
|
+
this._updateFlag.flag = false;
|
|
19280
|
+
}
|
|
19281
|
+
};
|
|
19265
19282
|
_proto._setLinearVelocity = function _setLinearVelocity() {
|
|
19266
19283
|
this._nativeCollider.setLinearVelocity(this._linearVelocity);
|
|
19267
19284
|
};
|
|
@@ -43279,7 +43296,7 @@
|
|
|
43279
43296
|
], GALACEAN_animation_event);
|
|
43280
43297
|
|
|
43281
43298
|
//@ts-ignore
|
|
43282
|
-
var version = "0.0.0-experimental-double11.
|
|
43299
|
+
var version = "0.0.0-experimental-double11.6";
|
|
43283
43300
|
console.log("Galacean engine version: " + version);
|
|
43284
43301
|
for(var key in CoreObjects){
|
|
43285
43302
|
Loader.registerClass(key, CoreObjects[key]);
|