Add red box to scene in app.js

This commit is contained in:
2025-05-28 03:03:52 +02:00
parent 6263f5debf
commit c1f5347706

View File

@@ -380,6 +380,8 @@ async function showSpirit(spirit) {
});
spiritObj.position.set(0, 0, 0); // GANZ vorne
scene.add(spiritObj);
const box = new THREE.Mesh(new THREE.BoxGeometry(1,1,1), new THREE.MeshStandardMaterial({ color: 0xff0000 }));
scene.add(box);
window.lastSpiritObj = spiritObj; // Debug
updateSpiritOverlay(spirit);
}