How can I rotate around the center of a group in Three.js
问题 I've created a group of cubes and I'm trying to figure out how to set the center so I can rotate them. Here is the fiddle: https://jsfiddle.net/of1vfhzz/ Here I add the cubes: side1 = new THREE.Object3D(); addCube({ name: 'side1topleft', x: -8.5, y: 7.5, z: 5 }); addCube({ name: 'side1topmiddle', x: -4, y: 7.5, z: 5 }); addCube({ name: 'side1topright', x: .5, y: 7.5, z: 5 }); addCube({ name: 'side1middleleft', x: -8.5, y: 3, z: 5 }); addCube({ name: 'side1middlemiddle', x: -4, y: 3, z: 5 });