Struggling with aligning cubes accurately using a script that positions cubes of different width, height, and depth on the xAxis, yAxis, and zAxis.
var geometry = new THREE.BoxGeometry(width, height, depth);
var cube = new THREE.Mesh(geometry, material);
cube.position.set(xAxis, yAxis, -zAxis);
scene.add(cube);
It seems that the cube is currently positioned based on its center. Is there a way to position it based on the front, left, and corner to address this issue with cubes of varying sizes?