commit 0a1f7d86c87e7351c8af4bb4b224666a0ee11413
parent 7080c5bd1da1c4ec1f5d4b9afa28b715f28acb23
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date: Sat, 6 Jul 2024 18:36:32 -0300
fix `trainConductorCamera` position
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tp/src/scene.js b/tp/src/scene.js
@@ -414,7 +414,7 @@ function buildLoco() {
const trainConductorCamera = new THREE.PerspectiveCamera(
55, window.innerWidth / window.innerHeight, 0.1, 10000);
- trainConductorCamera.position.set(0, 16, -20);
+ trainConductorCamera.position.set(0, 7, -11);
trainConductorCamera.lookAt(0, 20, 100);
train.add(trainConductorCamera);
trainConductorCamera.name = "trainConductorCamera";
@@ -494,6 +494,9 @@ function buildRailsFoundation() {
railsFoundation.position.set(-1, 1.25, -1);
railsFoundation.scale.set(1.00, 1.50, 1.00);
scene.add(railsFoundation);
+ // descomentando esto se tiene en cuenta la altura del terraplen de las vias
+ // para la camara en primera person pero resulta en muy baja performance
+ // objects.push(railsFoundation);
}
function buildRails() {