An Object3d that rotates independently of its parent objects, but keeps the position and scale.
-
-
- var root = new THREE.Group();
- var gyro = new THREE.Gyroscope();
- var cube = new THREE.Mesh( geometry, material );
-
- root.add( gyro )
- gyro.add( cube )
-
- cube.position.x = 10;
- root.rotation.y = Math.PI;
-
- // The cube will have changed its position but maintained its orientation
-
-
-