我需要管理對象組的位置作爲一個項目。如何在一個對象中組合兩個立方體?
我:
tankMesh1 = new THREE.Mesh(geometry, material);
tankMesh2 = new THREE.Mesh(geometry, material);
scene.add(tankMesh1);
scene.add(tankMesh2);
tankMesh2.position = tankMesh2.position + offset * cos (angle)
我需要:
tankMeshBig = new THREE.Mesh(tankMesh1 , tankMesh2);
例子:http://jsfiddle.net/ksRyQ/2287/
[three.js - mesh group example? (THREE.Object3D()高級)](http://stackoverflow.com/questions/7985805/three-js-mesh-group-example-three-object3d- advanced) –
請參閱'THREE.GeometryUtils.merge()'in [文檔](http://threejs.org/docs/#Reference/Extras/GeometryUtils)。 – WestLangley