@galacean/engine-physics-physx 1.5.0-beta.0 → 1.5.0

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
@@ -1308,10 +1308,14 @@ PhysXHingeJoint._xAxis = new Vector3(1, 0, 0);
1308
1308
  /**
1309
1309
  * PhysX object creation.
1310
1310
  */ var PhysXPhysics = /*#__PURE__*/ function() {
1311
- function PhysXPhysics(runtimeMode) {
1311
+ function PhysXPhysics(runtimeMode, runtimeUrls) {
1312
1312
  if (runtimeMode === void 0) runtimeMode = PhysXRuntimeMode.Auto;
1313
1313
  this._initializeState = 0;
1314
1314
  this._runTimeMode = runtimeMode;
1315
+ var _runtimeUrls_wasmModeUrl;
1316
+ this._wasmModeUrl = (_runtimeUrls_wasmModeUrl = runtimeUrls == null ? void 0 : runtimeUrls.wasmModeUrl) != null ? _runtimeUrls_wasmModeUrl : "https://mdn.alipayobjects.com/rms/afts/file/A*nL1PSrCPoZ0AAAAAAAAAAAAAARQnAQ/physx.release.js";
1317
+ var _runtimeUrls_javaScriptModeUrl;
1318
+ this._downgradeModeUrl = (_runtimeUrls_javaScriptModeUrl = runtimeUrls == null ? void 0 : runtimeUrls.javaScriptModeUrl) != null ? _runtimeUrls_javaScriptModeUrl : "https://mdn.alipayobjects.com/rms/afts/file/A*ROBqQJEjZXAAAAAAAAAAAAAAARQnAQ/physx.release.downgrade.js";
1315
1319
  }
1316
1320
  var _proto = PhysXPhysics.prototype;
1317
1321
  /**
@@ -1349,9 +1353,9 @@ PhysXHingeJoint._xAxis = new Vector3(1, 0, 0);
1349
1353
  }
1350
1354
  }
1351
1355
  if (runtimeMode == PhysXRuntimeMode.JavaScript) {
1352
- script.src = "https://mdn.alipayobjects.com/rms/afts/file/A*V4pqRqM65UMAAAAAAAAAAAAAARQnAQ/physx.release.downgrade.js";
1356
+ script.src = _this._downgradeModeUrl;
1353
1357
  } else if (runtimeMode == PhysXRuntimeMode.WebAssembly) {
1354
- script.src = "https://mdn.alipayobjects.com/rms/afts/file/A*nL1PSrCPoZ0AAAAAAAAAAAAAARQnAQ/physx.release.js";
1358
+ script.src = _this._wasmModeUrl;
1355
1359
  }
1356
1360
  });
1357
1361
  var initializePromise = new Promise(function(resolve, reject) {
@@ -1473,7 +1477,7 @@ PhysXHingeJoint._xAxis = new Vector3(1, 0, 0);
1473
1477
  }();
1474
1478
 
1475
1479
  //@ts-ignore
1476
- var version = "1.5.0-beta.0";
1480
+ var version = "1.5.0";
1477
1481
  console.log("Galacean Engine Physics PhysX Version: " + version);
1478
1482
 
1479
1483
  export { PhysXPhysics, PhysXRuntimeMode, version };