I've been working on developing an fps game, but I'm encountering an issue where the floor disappears from the scene when I try to rotate it close to 90 degrees. Here's the code snippet responsible for creating the plane.
var colorMap = new THREE.TextureLoader().load('/textures/wood_albedo.png');
var radian = 2 * Math.PI *(90 / 360);
var geometry = new THREE.BoxGeometry(20, 20);
var material = new THREE.MeshStandardMaterial({color: 'white', side: THREE.DoubleSide});
var mesh = new THREE.Mesh(geometry, material);
scene.add(mesh);
I'm having trouble figuring out what mistake I've made. Any assistance or advice would be greatly appreciated. Thank you for taking the time to read this.