From 69108e4c49482861e4e35a5d37374b57e70c7d2e Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Mon, 8 Apr 2024 15:10:16 -0500 Subject: [PATCH] orbit controls working --- main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 900b28f..b62b7a4 100644 --- a/main.js +++ b/main.js @@ -32,9 +32,13 @@ scene.add(ambientLight, pointLight); pointLight.position.set(10, 10, 10); const lightHelper = new THREE.PointLightHelper(pointLight); -scene.add(lightHelper); +const gridHelper = new THREE.GridHelper(200, 50); +scene.add(gridHelper, lightHelper); + +const controls = new OrbitControls(camera, renderer.domElement) + function animate(){ requestAnimationFrame(animate);