From aeeb4b7f35f9b44a6ebbd3147271e1924eefb90b Mon Sep 17 00:00:00 2001 From: Juan Carlos Ponce Campuzano <37394697+jcponce@users.noreply.github.com> Date: Tue, 16 Jul 2024 09:27:05 +1000 Subject: [PATCH] Update main.js --- threejs/particle-life-3d/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/threejs/particle-life-3d/main.js b/threejs/particle-life-3d/main.js index 0eb988a3..302eda5a 100644 --- a/threejs/particle-life-3d/main.js +++ b/threejs/particle-life-3d/main.js @@ -117,10 +117,10 @@ function init() { controls = new OrbitControls(camera, renderer.domElement); controls.enableDamping = true; - controls.dampingFactor = 0.05; + controls.dampingFactor = 0.5; //controls.screenSpacePanning = false; - //controls.minDistance = 500; - //controls.maxDistance = 3000; + controls.minDistance = 100; + controls.maxDistance = 3000; let directionalLight = new THREE.DirectionalLight(0xffffff, 2);