0
我想旋轉一堆數組中的單獨對象作爲1對象。對象旋轉中的對象ThreeJS
像這樣:
//call bodyparts in console
bodyParts
//This is the outcome
[THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh];
例如,我可以叫bodyParts[0].rotation.x
他們所有seperately旋轉,但我想他們都在一次旋轉。
這樣做的最好方法是什麼?