fix: [rd] 방화셔터 3D 셔터박스 위치 오류 수정

- wireframe이 case 자식으로 추가되면서 위치가 2배 적용되던 버그 수정
- boxLine.position 제거 (부모 case의 transform을 상속하므로 불필요)
This commit is contained in:
김보곤
2026-03-08 20:06:33 +09:00
parent eb004fe399
commit ab72df15d4

View File

@@ -980,10 +980,9 @@ function fs3dBuild() {
meshes.case.position.set(0, H + b.height / 2, 0);
scene.add(meshes.case);
// Box wireframe
// Box wireframe (child of case — position (0,0,0) relative to parent)
const boxEdges = new THREE.EdgesGeometry(boxGeo);
const boxLine = new THREE.LineSegments(boxEdges, new THREE.LineBasicMaterial({ color: 0x94a3b8 }));
boxLine.position.copy(meshes.case.position);
meshes.case.add(boxLine);
// === SHAFT ===