@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/module.js CHANGED
@@ -528,7 +528,9 @@ PhysXCharacterController._tempVec = new Vector3();
528
528
  * {@inheritDoc ICollider.addShape }
529
529
  */ _proto.addShape = function addShape(shape) {
530
530
  var _this__scene;
531
- this._pxActor.attachShape(shape._pxShape);
531
+ if (!this._pxActor.attachShape(shape._pxShape)) {
532
+ throw new Error("PhysXCollider: failed to attach shape to the native actor.");
533
+ }
532
534
  this._shapes.push(shape);
533
535
  (_this__scene = this._scene) == null ? void 0 : _this__scene._addColliderShape(shape._id);
534
536
  };
@@ -2076,7 +2078,7 @@ PhysXMeshColliderShape._tightBoundsFlag = 1 // eTIGHT_BOUNDS = 1 (1<<0)
2076
2078
  }();
2077
2079
 
2078
2080
  //@ts-ignore
2079
- var version = "0.0.0-experimental-2.0-migrate.4";
2081
+ var version = "0.0.0-experimental-2.0-migrate.6";
2080
2082
  console.log("Galacean Engine Physics PhysX Version: " + version);
2081
2083
 
2082
2084
  export { PhysXPhysics, PhysXRuntimeMode, version };