I want to create multiple objects.
var distance = 10;
var geometry = new THREE.BoxGeometry(10,10,10);
var material = new THREE.MeshBasicMaterial({color:0x00ff44});
for(var i = 0; i < 4;i++){
var mesh = new THREE.Mesh(geometry, material);
mesh.position.z = distance;
scene.add(mesh);
distance += 5;
};`
With this code i create it, but only in one row. I want to create more rows on the back of the first row. Like this image:
I want more cubes on the Red X position.