Update camera configuration and FPV controls: adjusted camera position, target, and distance values for improved viewing experience; modified jump speed, gravity, crouch height, and crouch speed in FPV controls for enhanced movement dynamics; refined eye height calculation in model loader for better alignment with model dimensions.

This commit is contained in:
sebseb7
2025-08-26 02:49:35 +02:00
parent 6e563e86e9
commit 6d34067fc8
3 changed files with 15 additions and 15 deletions

View File

@@ -234,7 +234,7 @@ function centerModelAndControls(object, camera, controls) {
window.modelBounds = { boundingBox, center, size };
window.groundLevel = boundingBox.min.y;
window.ceilingLevel = boundingBox.max.y;
window.eyeHeight = window.groundLevel + (window.ceilingLevel - window.groundLevel) * 0.5;
window.eyeHeight = window.groundLevel + (window.ceilingLevel - window.groundLevel) * 0.55;
console.log('FPV bounds calculated:');
console.log('Ground level:', window.groundLevel);