From ff2ab17a5031e78532de8019050a37ca24b051ab Mon Sep 17 00:00:00 2001 From: Alexandre Coirier Date: Tue, 9 Jun 2026 14:03:54 +0200 Subject: [PATCH] fix: DoubleJump rotation --- Assets/_Content/Scripts/Player/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/_Content/Scripts/Player/Player.cs b/Assets/_Content/Scripts/Player/Player.cs index a752202..403b82c 100644 --- a/Assets/_Content/Scripts/Player/Player.cs +++ b/Assets/_Content/Scripts/Player/Player.cs @@ -633,7 +633,7 @@ public class Player : MonoBehaviour // Rotate COG float angle = Mathf.Lerp(0, 5, _state.Running); if (_doubleJump) - angle = Mathf.Clamp01(_doubleJumpTime * 3) * 360; + angle = Mathf.Sqrt(Mathf.Clamp01(_doubleJumpTime * 3)) * 360; _references.COG.transform.localRotation = Quaternion.Euler(angle, 0, 0); }