@galacean/engine-physics-physx 0.0.0-experimental-2.0-migrate.4 → 0.0.0-experimental-2.0-migrate.6

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
@@ -532,7 +532,9 @@ PhysXCharacterController._tempVec = new engine.Vector3();
532
532
  * {@inheritDoc ICollider.addShape }
533
533
  */ _proto.addShape = function addShape(shape) {
534
534
  var _this__scene;
535
- this._pxActor.attachShape(shape._pxShape);
535
+ if (!this._pxActor.attachShape(shape._pxShape)) {
536
+ throw new Error("PhysXCollider: failed to attach shape to the native actor.");
537
+ }
536
538
  this._shapes.push(shape);
537
539
  (_this__scene = this._scene) == null ? void 0 : _this__scene._addColliderShape(shape._id);
538
540
  };
@@ -2080,7 +2082,7 @@ PhysXMeshColliderShape._tightBoundsFlag = 1 // eTIGHT_BOUNDS = 1 (1<<0)
2080
2082
  }();
2081
2083
 
2082
2084
  //@ts-ignore
2083
- var version = "0.0.0-experimental-2.0-migrate.4";
2085
+ var version = "0.0.0-experimental-2.0-migrate.6";
2084
2086
  console.log("Galacean Engine Physics PhysX Version: " + version);
2085
2087
 
2086
2088
  exports.PhysXPhysics = PhysXPhysics;