@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/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.39";
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;