Tweak: minor fixes of areas

This commit is contained in:
Dejvino 2025-12-29 21:54:25 +00:00
parent 0111d566cb
commit 87a5153fe2
4 changed files with 12 additions and 5 deletions

View File

@ -111,7 +111,7 @@ export class Dancers extends SceneFeature {
const jumpDuration = 0.5;
const jumpHeight = 2.0;
const moveSpeed = 2.0;
const movementArea = { x: 10, z: 4, centerZ: -length / 2 + stageDepth / 2 };
const movementArea = { x: 9, z: 3.6, centerZ: -length / 2 + stageDepth / 2 };
this.dancers.forEach(dancerObj => {
const { mesh } = dancerObj;

View File

@ -129,9 +129,9 @@ export class MedievalMusicians extends SceneFeature {
const time = state.clock.getElapsedTime();
const moveSpeed = 2.0;
const stageArea = { x: 10, z: 4, y: stageHeight, centerZ: -length / 2 + stageDepth / 2 };
const floorArea = { x: 10, z: 4, y: 0, centerZ: -length / 2 + stageDepth + 2 };
const planeEdgeZ = -length / 2 + stageDepth;
const stageArea = { x: 9, z: 3.8, y: stageHeight, centerZ: -length / 2 + stageDepth / 2 };
const floorArea = { x: 10, z: 3.5, y: 0, centerZ: -length / 2 + stageDepth + 2 };
const planeEdgeZ = -length / 2 + stageDepth + 0.5;
const planeJumpChance = 0.1;
const jumpChance = 0.005;
const jumpDuration = 0.5;

View File

@ -110,6 +110,13 @@ export class RoseWindowLightshafts extends SceneFeature {
mesh.material.map.offset.y += deltaTime * 0.004;
mesh.material.map.offset.x -= deltaTime * 0.02;
if (mesh.material.map.offset.y >= 0.5) {
mesh.material.map.offset.y -= 0.5;
}
if (mesh.material.map.offset.x <= 0.0) {
mesh.material.map.offset.x += 1.0;
}
// --- Movement Logic ---
const pathDirection = floorEndPoint.clone().sub(floorStartPoint).normalize();
const pathLength = floorStartPoint.distanceTo(floorEndPoint);

View File

@ -17,7 +17,7 @@ export class StageTorches extends SceneFeature {
// --- Stage Dimensions for positioning ---
const length = 40;
const naveWidth = 12;
const stageWidth = naveWidth - 1;
const stageWidth = naveWidth - 2;
const stageHeight = 1.5;
const stageDepth = 5;