@galacean/engine-physics-physx 2.0.0-alpha.38 → 2.0.0-alpha.40
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 +4 -2
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +4 -2
- package/dist/main.js.map +1 -1
- package/dist/module.js +4 -2
- package/dist/module.js.map +1 -1
- package/package.json +6 -5
package/dist/main.js
CHANGED
|
@@ -525,7 +525,9 @@ PhysXCharacterController._tempVec = new engine.Vector3();
|
|
|
525
525
|
* {@inheritDoc ICollider.addShape }
|
|
526
526
|
*/ _proto.addShape = function addShape(shape) {
|
|
527
527
|
var _this__scene;
|
|
528
|
-
this._pxActor.attachShape(shape._pxShape)
|
|
528
|
+
if (!this._pxActor.attachShape(shape._pxShape)) {
|
|
529
|
+
throw new Error("PhysXCollider: failed to attach shape to the native actor.");
|
|
530
|
+
}
|
|
529
531
|
this._shapes.push(shape);
|
|
530
532
|
(_this__scene = this._scene) == null ? void 0 : _this__scene._addColliderShape(shape._id);
|
|
531
533
|
};
|
|
@@ -1947,7 +1949,7 @@ PhysXMeshColliderShape._tightBoundsFlag = 1 // eTIGHT_BOUNDS = 1 (1<<0)
|
|
|
1947
1949
|
}();
|
|
1948
1950
|
|
|
1949
1951
|
//@ts-ignore
|
|
1950
|
-
var version = "2.0.0-alpha.
|
|
1952
|
+
var version = "2.0.0-alpha.40";
|
|
1951
1953
|
console.log("Galacean Engine Physics PhysX Version: " + version);
|
|
1952
1954
|
|
|
1953
1955
|
exports.PhysXPhysics = PhysXPhysics;
|