const geometry = new THREE.BoxGometry(1,1,1); const material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } ); const cube = new THREE.Mesh( geometry, material ); scene.add( cube );
cube.rotation.x += 0.01; cube.rotation.y += 0.01;