From a98c058f3dfbdb7d81136c9e9f2efe167492a779 Mon Sep 17 00:00:00 2001 From: Dejvino Date: Wed, 19 Nov 2025 23:25:44 +0100 Subject: [PATCH] Fix: beams overlap --- magic-mirror/src/scene/root.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/magic-mirror/src/scene/root.js b/magic-mirror/src/scene/root.js index f16e393..da768ba 100644 --- a/magic-mirror/src/scene/root.js +++ b/magic-mirror/src/scene/root.js @@ -83,8 +83,8 @@ export function createSceneObjects() { const beamDepth = 0.2; // Ceiling Beams - const ceilingBeamGeoX = new THREE.BoxGeometry(state.roomSize, beamDepth, beamThickness); - const ceilingBeamGeoZ = new THREE.BoxGeometry(beamThickness, beamDepth, state.roomSize); + const ceilingBeamGeoX = new THREE.BoxGeometry(state.roomSize, beamDepth * 1.3, beamThickness); + const ceilingBeamGeoZ = new THREE.BoxGeometry(beamThickness, beamDepth * 0.8, state.roomSize); const createBeam = (geo, pos, rotY = 0) => { const beam = new THREE.Mesh(geo, woodMaterial); @@ -121,8 +121,8 @@ export function createSceneObjects() { createBeam(wallBeamGeo, new THREE.Vector3(state.roomSize / 2 - beamDepth / 2, state.roomHeight / 2, 1.5), -Math.PI / 2); // Wall Beams (Horizontal) - const wallBeamGeoX = new THREE.BoxGeometry(state.roomSize, beamThickness, beamDepth); - const wallBeamGeoZ = new THREE.BoxGeometry(beamDepth, beamThickness, state.roomSize); + const wallBeamGeoX = new THREE.BoxGeometry(state.roomSize, beamThickness, beamDepth * 1.3); + const wallBeamGeoZ = new THREE.BoxGeometry(beamDepth * 1.3, beamThickness, state.roomSize); // Back Wall createBeam(wallBeamGeoX, new THREE.Vector3(0, state.roomHeight - 0.5, -state.roomSize / 2 + beamDepth / 2));