TA159

Notas, resueltos y trabajos practicos de la materia Sistemas Gráficos
Index Commits Files Refs Submodules README LICENSE
commit 4f65526c2638727a4f7b100a298241ebd5371f86
parent 4038ac3fd1069c560fe4ee67fa064e401ded7d3c
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date:   Sat,  6 Jul 2024 18:26:51 -0300

set train and first person camera default 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
@@ -245,7 +245,7 @@ function setupFirstPersonControls() {
     const firstPersonCamera = new THREE.PerspectiveCamera(
         50, window.innerWidth / window.innerHeight, 0.1, 1000);
 
-    firstPersonCamera.position.set(5, 5, 40);
+    firstPersonCamera.position.set(0, 5, 20);
     firstPersonCamera.lookAt(-10, 5, 0);
     firstPersonCamera.name = "firstPersonCamera"
     cameras.push(firstPersonCamera);
@@ -899,7 +899,7 @@ function mainLoop() {
 function main() {
     setupThreeJs();
     setupFirstPersonControls();
-    time = 0.00;
+    time = 0.90;
     buildScene();
     createMenu();
     nextCamera();