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

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-physics-physx",
3
- "version": "1.5.0-beta.0",
3
+ "version": "1.5.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -26,11 +26,11 @@
26
26
  "types/**/*"
27
27
  ],
28
28
  "devDependencies": {
29
- "@galacean/engine-design": "1.5.0-beta.0",
30
- "@galacean/engine": "1.5.0-beta.0"
29
+ "@galacean/engine-design": "1.5.1",
30
+ "@galacean/engine": "1.5.1"
31
31
  },
32
32
  "peerDependencies": {
33
- "@galacean/engine": "1.5.0-beta.0"
33
+ "@galacean/engine": "1.5.1"
34
34
  },
35
35
  "scripts": {
36
36
  "b:types": "tsc"
@@ -14,7 +14,14 @@ export declare class PhysXPhysics implements IPhysics {
14
14
  private _defaultErrorCallback;
15
15
  private _allocator;
16
16
  private _tolerancesScale;
17
- constructor(runtimeMode?: PhysXRuntimeMode);
17
+ private _wasmModeUrl;
18
+ private _downgradeModeUrl;
19
+ /**
20
+ * Create a PhysXPhysics instance.
21
+ * @param runtimeMode - Runtime use WebAssembly mode or downgrade JavaScript mode, `Auto` prefers webAssembly mode if supported @see {@link PhysXRuntimeMode}
22
+ * @param runtimeUrls - Manually specify the `PhysXRuntimeMode.WebAssembly` mode and `PhysXRuntimeMode.JavaScript` mode URL
23
+ */
24
+ constructor(runtimeMode?: PhysXRuntimeMode, runtimeUrls?: PhysXRuntimeUrls);
18
25
  /**
19
26
  * Initialize PhysXPhysics.
20
27
  * @param runtimeMode - Runtime mode
@@ -87,3 +94,10 @@ export declare class PhysXPhysics implements IPhysics {
87
94
  setColliderLayerCollision(layer1: number, layer2: number, isCollide: boolean): void;
88
95
  private _init;
89
96
  }
97
+ interface PhysXRuntimeUrls {
98
+ /*** The URL of `PhysXRuntimeMode.WebAssembly` mode. */
99
+ wasmModeUrl?: string;
100
+ /*** The URL of `PhysXRuntimeMode.JavaScript` mode. */
101
+ javaScriptModeUrl?: string;
102
+ }
103
+ export {};