Currently exploring Three.js and cannon.js, I've been attempting to construct a basic room without much luck. Referencing this sample, my goal is to include walls and a ceiling. What's the simplest approach to achieve this? At the moment, my code snippet looks like this:
// wall?
wallGeometry = new THREE.PlaneGeometry( 300, 300 );
wallGeometry.applyMatrix( new THREE.Matrix4().makeRotationX( Math.PI));
wallMesh = new THREE.Mesh( wallGeometry, material );
wallMesh.castShadow = false;
wallMesh.receiveShadow = true;
scene.add(wallMesh);
However, the result is peculiarly illuminated, and I'm unable to interact with it properly. When trying to incorporate it through cannon.js, the wall becomes invisible. Any guidance on how to proceed in the right direction would be greatly appreciated.