menus and settings
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 13s
Create tag and build when new code gets to main / Export (push) Successful in 8m15s

This commit is contained in:
2025-10-23 15:21:33 +02:00
parent 916ff1921c
commit ef33336975
122 changed files with 1228 additions and 66 deletions

View File

@@ -24,6 +24,7 @@ public partial class FieldOfView: Node3D
public float Delta;
public float SprintSpeed;
public Vector3 Velocity;
public float FOVMultiplier;
}
public void PerformFovAdjustment(FovParameters parameters)
@@ -33,10 +34,10 @@ public partial class FieldOfView: Node3D
0.5f,
parameters.SprintSpeed * 2.0f);
float targetFov = BaseFov + FovChangeFactor * velocityClamped;
float targetFov = BaseFov + FovChangeFactor * velocityClamped * parameters.FOVMultiplier;
if (parameters.IsCrouchingHeight){
targetFov = BaseFov - FovChangeFactor * velocityClamped;
targetFov = BaseFov - FovChangeFactor * velocityClamped * parameters.FOVMultiplier;
}
_camera.Fov = Mathf.Lerp(_camera.Fov, targetFov, parameters.Delta * FovChangeSpeed);