From 3105feb5a02a2e9b5bb9f0957cacb21191b0e76e Mon Sep 17 00:00:00 2001 From: cailean Date: Wed, 26 Nov 2025 16:35:34 +0000 Subject: [PATCH] path change for glbs --- js/Player.js | 2 +- js/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/Player.js b/js/Player.js index 14ed3d7..96b2851 100644 --- a/js/Player.js +++ b/js/Player.js @@ -480,7 +480,7 @@ export class Player { ; if (i == 0) { - this._loadSprayCan('models/spray-can.glb', 0.04).then((model) => { + this._loadSprayCan('/models/spray-can.glb', 0.04).then((model) => { if (model instanceof THREE.Object3D) { controller.add(model); this.sprayCan = model; diff --git a/js/main.js b/js/main.js index 92e8374..595c37e 100644 --- a/js/main.js +++ b/js/main.js @@ -105,7 +105,7 @@ async function init() { scene.add(player.playerRig); /* Load Items/Content */ - await loadWorldModel("models/demo-world_repositioned_2511.glb"); + await loadWorldModel("/models/demo-world_repositioned_2511.glb"); instructions.innerHTML = "Click to play"; instructions.addEventListener( 'click', function () {