Tweak: minor fixes of areas
This commit is contained in:
parent
0111d566cb
commit
87a5153fe2
@ -111,7 +111,7 @@ export class Dancers extends SceneFeature {
|
|||||||
const jumpDuration = 0.5;
|
const jumpDuration = 0.5;
|
||||||
const jumpHeight = 2.0;
|
const jumpHeight = 2.0;
|
||||||
const moveSpeed = 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 => {
|
this.dancers.forEach(dancerObj => {
|
||||||
const { mesh } = dancerObj;
|
const { mesh } = dancerObj;
|
||||||
|
|||||||
@ -129,9 +129,9 @@ export class MedievalMusicians extends SceneFeature {
|
|||||||
|
|
||||||
const time = state.clock.getElapsedTime();
|
const time = state.clock.getElapsedTime();
|
||||||
const moveSpeed = 2.0;
|
const moveSpeed = 2.0;
|
||||||
const stageArea = { x: 10, z: 4, y: stageHeight, centerZ: -length / 2 + stageDepth / 2 };
|
const stageArea = { x: 9, z: 3.8, y: stageHeight, centerZ: -length / 2 + stageDepth / 2 };
|
||||||
const floorArea = { x: 10, z: 4, y: 0, centerZ: -length / 2 + stageDepth + 2 };
|
const floorArea = { x: 10, z: 3.5, y: 0, centerZ: -length / 2 + stageDepth + 2 };
|
||||||
const planeEdgeZ = -length / 2 + stageDepth;
|
const planeEdgeZ = -length / 2 + stageDepth + 0.5;
|
||||||
const planeJumpChance = 0.1;
|
const planeJumpChance = 0.1;
|
||||||
const jumpChance = 0.005;
|
const jumpChance = 0.005;
|
||||||
const jumpDuration = 0.5;
|
const jumpDuration = 0.5;
|
||||||
|
|||||||
@ -110,6 +110,13 @@ export class RoseWindowLightshafts extends SceneFeature {
|
|||||||
mesh.material.map.offset.y += deltaTime * 0.004;
|
mesh.material.map.offset.y += deltaTime * 0.004;
|
||||||
mesh.material.map.offset.x -= deltaTime * 0.02;
|
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 ---
|
// --- Movement Logic ---
|
||||||
const pathDirection = floorEndPoint.clone().sub(floorStartPoint).normalize();
|
const pathDirection = floorEndPoint.clone().sub(floorStartPoint).normalize();
|
||||||
const pathLength = floorStartPoint.distanceTo(floorEndPoint);
|
const pathLength = floorStartPoint.distanceTo(floorEndPoint);
|
||||||
|
|||||||
@ -17,7 +17,7 @@ export class StageTorches extends SceneFeature {
|
|||||||
// --- Stage Dimensions for positioning ---
|
// --- Stage Dimensions for positioning ---
|
||||||
const length = 40;
|
const length = 40;
|
||||||
const naveWidth = 12;
|
const naveWidth = 12;
|
||||||
const stageWidth = naveWidth - 1;
|
const stageWidth = naveWidth - 2;
|
||||||
const stageHeight = 1.5;
|
const stageHeight = 1.5;
|
||||||
const stageDepth = 5;
|
const stageDepth = 5;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user