TA159

Notas, resueltos y trabajos practicos de la materia Sistemas Gráficos
Index Commits Files Refs Submodules README LICENSE
commit abff0262de87600fb6afed3dce773a1cc78979f6
parent 6afa2b9eadbe0facf2b090a2d787cecf0aa83f9f
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date:   Thu,  4 Jul 2024 19:48:01 -0300

change first person camera starting position

Diffstat:
Mtp/src/scene.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tp/src/scene.js b/tp/src/scene.js
@@ -217,8 +217,8 @@ function setupFirstPersonControls() {
     const firstPersonCamera = new THREE.PerspectiveCamera(
         50, window.innerWidth / window.innerHeight, 0.1, 1000);
 
-    firstPersonCamera.position.set(0, 5, 0);
-    firstPersonCamera.lookAt(1000, 0, 0);
+    firstPersonCamera.position.set(5, 5, 40);
+    firstPersonCamera.lookAt(-10, 5, 0);
     firstPersonCamera.name = "firstPersonCamera"
     cameras.push(firstPersonCamera);