From a6c6a3f521fa84b198f3d60886c60bd8a0bcb9e1 Mon Sep 17 00:00:00 2001 From: Jonathan Rodriguez Date: Thu, 31 Oct 2024 15:04:39 -0300 Subject: [PATCH] Update script.js --- script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index 5da6bc1..de87a78 100644 --- a/script.js +++ b/script.js @@ -8,7 +8,8 @@ const renderer = new THREE.WebGLRenderer({ // Set up the camera controls const controls = new THREE.OrbitControls(camera, renderer.domElement); - +const OrbitControls = THREE.OrbitControls; +controls = new OrbitControls(camera, renderer.domElement); // Add some basic lighting const ambientLight = new THREE.AmbientLight(0x444444); scene.add(ambientLight);