From 862acfd07fc723f9836db667e28e674ea7136d23 Mon Sep 17 00:00:00 2001 From: Dejvino Date: Tue, 6 Jan 2026 21:37:39 +0000 Subject: [PATCH] Tweak: guests movement limit --- party-stage/src/scene/party-guests.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/party-stage/src/scene/party-guests.js b/party-stage/src/scene/party-guests.js index 020e26e..2541338 100644 --- a/party-stage/src/scene/party-guests.js +++ b/party-stage/src/scene/party-guests.js @@ -6,7 +6,7 @@ import sceneFeatureManager from './SceneFeatureManager.js'; // --- Scene dimensions for positioning --- const stageHeight = 1.5; const stageDepth = 5; -const length = 25; +const length = 24; const moveSpeed = 0.8; const movementArea = { x: 15, z: length, y: 0, centerZ: -2 }; const jumpChance = 0.01; @@ -14,8 +14,8 @@ const jumpDuration = 0.3; const jumpHeight = 0.2; const jumpVariance = 0.1; const rushIn = false; -const waitTimeBase = 10; -const waitTimeVariance = 60; +const waitTimeBase = 15; +const waitTimeVariance = 120; // --- Guest Properties --- const guestHeight = 1.8; // Approx height of the blob+head @@ -471,6 +471,12 @@ export class PartyGuests extends SceneFeature { } } // End else (Standard Logic) + // Virtual Barrier to prevent entering the stage + const movementAreaLimitZ = movementArea.centerZ - movementArea.z/2; + if (mesh.position.z < movementAreaLimitZ) { + mesh.position.z = movementAreaLimitZ; + } + // Update hands up timer if (guestObj.handsUpTimer > 0) { guestObj.handsUpTimer -= deltaTime;