matrix-engine-wgpu 1.2.13 → 1.2.14

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": "matrix-engine-wgpu",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "description": "+HOTFIX raycast, webGPU powered pwa application. Crazy fast rendering with AmmoJS physics support. Simple raycaster hit object added.",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -5,7 +5,7 @@ export default class MatrixAmmo {
5
5
  constructor() {
6
6
  // THIS PATH IS PATH FROM PUBLIC FINAL FOLDER
7
7
  scriptManager.LOAD(
8
- "./ammojs/ammo.js",
8
+ "https://maximumroulette.com/apps/megpu/ammo.js",
9
9
  "ammojs",
10
10
  undefined,
11
11
  undefined,
@@ -287,7 +287,7 @@ export default class MatrixAmmo {
287
287
  }
288
288
 
289
289
  updatePhysics() {
290
- if(!Ammo) return;
290
+ if(typeof Ammo === 'undefined') return;
291
291
  const trans = new Ammo.btTransform();
292
292
  const transform = new Ammo.btTransform();
293
293