ld-gd: basic greyboxing, double jump

This commit is contained in:
2025-05-21 19:36:40 +02:00
parent b3a28436bc
commit 67461aa4be
4 changed files with 128 additions and 18 deletions

View File

@ -29,7 +29,9 @@ public partial class FieldOfView: Node3D
public void PerformFovAdjustment(FovParameters parameters)
{
float velocityClamped = Mathf.Clamp(
parameters.Velocity.Length(), 0.5f, parameters.SprintSpeed * 2.0f);
Mathf.Abs(parameters.Velocity.X) + Mathf.Abs(parameters.Velocity.Z),
0.5f,
parameters.SprintSpeed * 2.0f);
float targetFov = BaseFov + FovChangeFactor * velocityClamped;