From 133ba568d2dc79f2f1ba646b73a792ea99aa2117 Mon Sep 17 00:00:00 2001 From: CJSatnarine Date: Thu, 9 Oct 2025 16:50:36 -0400 Subject: [PATCH] fixed camera look-around speed --- static/secrets/woof.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/static/secrets/woof.js b/static/secrets/woof.js index 46aa3e6..03b749e 100644 --- a/static/secrets/woof.js +++ b/static/secrets/woof.js @@ -16,11 +16,15 @@ renderer.setSize(window.innerWidth, window.innerHeight); // Cube geometry stuff. const geometry = new THREE.BoxGeometry(5, 1, 1); -const material = new THREE.MeshBasicMaterial( - { color: 0x962FFE } -); +const material = new THREE.MeshBasicMaterial({ color: 0x962FFE }); +const material2 = new THREE.MeshBasicMaterial({ color: 0x00FF00 }); const cube = new THREE.Mesh(geometry, material); +const cube2 = new THREE.Mesh(geometry, material2); +cube2.position.x = 4; +cube2.position.z = 7; +cube2.rotateX = 35; scene.add(cube); +scene.add(cube2); // Light stuff const light = new THREE.DirectionalLight(0xFFFFFF, 0.5); @@ -31,7 +35,8 @@ scene.add(light); let clock = new THREE.Clock(); let controls = new FirstPersonControls(camera, renderer.domElement); controls.movementSpeed = 5; -controls.lookSpeed = 0.8; +controls.lookSpeed = 0.1; +controls.lookVertical = false; function animate() { controls.update(clock.getDelta());