I have a collection of individual objects in an Array that I want to rotate as a single object.
Here is an example:
//retrieve body parts from the console
bodyParts
//Result
[THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh, THREE.Mesh];
Currently, I can rotate them separately by using bodyParts[0].rotation.x
, but I am looking for a way to rotate them all together.
What is the most effective method to achieve this?