@galacean/engine-core 0.0.0-experimental-double11.3 → 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 +17 -0
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +17 -0
- package/dist/module.js +17 -0
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/miniprogram.js
CHANGED
|
@@ -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;
|
package/dist/module.js
CHANGED
|
@@ -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;
|