javascript function animate() { requestAnimationFrame(animate); gear.rotation.x += 0.01; gear.rotation.z += 0.01; // Get the current camera position var cameraPosition = camera.position.clone(); // Calculate the new camera position based on the gear rotation var radius = 2; // Adjust this value to control the distance from the gear var angle = gear.rotation.x; var newX = radius * Math.sin(angle); var newZ = radius * Math.cos(angle); cameraPosition.set(newX, cameraPosition.y, newZ); // Update the camera position camera.position.copy(cameraPosition); renderer.render(scene, camera); }