TA159

Notas, resueltos y trabajos practicos de la materia Sistemas Gráficos
Index Commits Files Refs Submodules README LICENSE
commit 43a8f283217f2d44cedab6acb253fd02523546eb
parent 3ccf96902476e84f096a19433ce01ad541624409
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date:   Sat,  6 Jul 2024 18:16:42 -0300

set trees threshold higher

Diffstat:
Mtp/src/trees.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tp/src/trees.js b/tp/src/trees.js
@@ -30,7 +30,7 @@ function isForbbidenPosition(position) {
     const z = Math.floor(position.z);
 
     // TODO: estos valores deberian depender de la posicion del terreno
-    if((y > 5.8) || (y < 3.25)) {
+    if((y > 6.8) || (y < 3.25)) {
         // console.log("(" + position.x + ", " + position.y + ", " + position.z + ") is not valid ");
         return true;
     }