@galacean/engine-core 0.0.0-experimental-double11.5 → 0.0.0-experimental-double11.7
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 +18 -1
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +18 -1
- package/dist/module.js +18 -1
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -7545,7 +7545,7 @@ __decorate([
|
|
|
7545
7545
|
ignoreClone
|
|
7546
7546
|
], exports.Renderer.prototype, "_globalShaderMacro", void 0);
|
|
7547
7547
|
__decorate([
|
|
7548
|
-
|
|
7548
|
+
ignoreClone
|
|
7549
7549
|
], exports.Renderer.prototype, "_bounds", void 0);
|
|
7550
7550
|
__decorate([
|
|
7551
7551
|
ignoreClone
|
|
@@ -14509,6 +14509,23 @@ var Collision = function Collision() {
|
|
|
14509
14509
|
target.constraints = this.constraints;
|
|
14510
14510
|
target.collisionDetectionMode = this.collisionDetectionMode;
|
|
14511
14511
|
};
|
|
14512
|
+
/**
|
|
14513
|
+
* @internal
|
|
14514
|
+
*/ _proto._onUpdate = function _onUpdate() {
|
|
14515
|
+
if (this._updateFlag.flag) {
|
|
14516
|
+
var transform = this.entity.transform;
|
|
14517
|
+
if (this.isKinematic) {
|
|
14518
|
+
this._nativeCollider.move(transform.worldPosition, transform.worldRotationQuaternion);
|
|
14519
|
+
} else {
|
|
14520
|
+
this._nativeCollider.setWorldTransform(transform.worldPosition, transform.worldRotationQuaternion);
|
|
14521
|
+
}
|
|
14522
|
+
var worldScale = transform.lossyWorldScale;
|
|
14523
|
+
for(var i = 0, n = this.shapes.length; i < n; i++){
|
|
14524
|
+
this.shapes[i]._nativeShape.setWorldScale(worldScale);
|
|
14525
|
+
}
|
|
14526
|
+
this._updateFlag.flag = false;
|
|
14527
|
+
}
|
|
14528
|
+
};
|
|
14512
14529
|
_proto._setLinearVelocity = function _setLinearVelocity() {
|
|
14513
14530
|
this._nativeCollider.setLinearVelocity(this._linearVelocity);
|
|
14514
14531
|
};
|