ld-gd: basic greyboxing, double jump
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user