@galacean/engine-physics-physx 2.0.0-alpha.39 → 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/module.js CHANGED
@@ -521,7 +521,9 @@ PhysXCharacterController._tempVec = new Vector3();
521
521
  * {@inheritDoc ICollider.addShape }
522
522
  */ _proto.addShape = function addShape(shape) {
523
523
  var _this__scene;
524
- this._pxActor.attachShape(shape._pxShape);
524
+ if (!this._pxActor.attachShape(shape._pxShape)) {
525
+ throw new Error("PhysXCollider: failed to attach shape to the native actor.");
526
+ }
525
527
  this._shapes.push(shape);
526
528
  (_this__scene = this._scene) == null ? void 0 : _this__scene._addColliderShape(shape._id);
527
529
  };
@@ -1943,7 +1945,7 @@ PhysXMeshColliderShape._tightBoundsFlag = 1 // eTIGHT_BOUNDS = 1 (1<<0)
1943
1945
  }();
1944
1946
 
1945
1947
  //@ts-ignore
1946
- var version = "2.0.0-alpha.39";
1948
+ var version = "2.0.0-alpha.40";
1947
1949
  console.log("Galacean Engine Physics PhysX Version: " + version);
1948
1950
 
1949
1951
  export { PhysXPhysics, PhysXRuntimeMode, version };