fix: [rd] 모터측 브라켓을 모터 그룹에 추가

- 모터측 브라켓은 모터 그룹 소속 (모터 숨기면 함께 숨김)
- 구조: 벽 ← 브라켓 ← 모터 ← 출력축 ← 복주머니 ← 샤프트
- 비모터측: 벽 ← 브라켓 ← 환봉 ← 샤프트
This commit is contained in:
김보곤
2026-03-08 22:09:36 +09:00
parent ae074e7af8
commit 11af8e2a6a

View File

@@ -1192,6 +1192,12 @@ function fs3dBuild() {
outShaft.position.set(motorStartX + motorDir * (outLen / 2), 0, 0);
meshes.motor.add(outShaft);
// 9) 모터측 브라켓 (모터가 안착되는 브라켓 — 모터 그룹에 포함)
const motorBkGeo = new THREE.BoxGeometry(bkW, bkH, bkD);
const motorBk = new THREE.Mesh(motorBkGeo, bracketMat);
motorBk.position.set(motorDir * (W1 / 2 - bkW / 2), 0, 0);
meshes.motor.add(motorBk);
meshes.motor.position.set(0, shaftY, 0);
scene.add(meshes.motor);