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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user