From cd5f6fd95fccf23e82efa11873544f6c69db7914 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 28 May 2025 07:04:36 +0200 Subject: [PATCH] Fix spinner spawn position in app.js --- node/server/public/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/server/public/app.js b/node/server/public/app.js index 5ed8982..209aa19 100644 --- a/node/server/public/app.js +++ b/node/server/public/app.js @@ -279,7 +279,7 @@ class SpinnerController { async spawnSpirit(spiritData) { let spawnPos = { x: 0, - y: this.spinnerRed ? this.spinnerRed.position.y - 1.5 : 15, + y: 15, z: 0.88 }; const modelUrl = spiritData['Model URL'] || spiritData.modelUrl; @@ -290,7 +290,7 @@ class SpinnerController { } async spawnSpiritWithOffset(spiritData, timeSinceSpawnMs = 0, spiritIntervalMs = 20000) { - let startY = this.spinnerRed ? this.spinnerRed.position.y - 1.5 : 15; + let startY = 15; let offset = (typeof timeSinceSpawnMs === 'number' && timeSinceSpawnMs > 0) ? timeSinceSpawnMs / 1000 : 0; let lifeTime = (spiritIntervalMs ? spiritIntervalMs : 20000) / 1000; const despawnSpeed = 0.8;