From 5a0f47145fa6f6aec5c2328ab439ab74f7156c1b Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Wed, 27 Mar 2024 20:18:28 +0100 Subject: [PATCH] We forgot time.deltatime... --- Assets/Scripts/Player/Movement/PlayerMovement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Player/Movement/PlayerMovement.cs b/Assets/Scripts/Player/Movement/PlayerMovement.cs index e34c5dd..71ff4ec 100644 --- a/Assets/Scripts/Player/Movement/PlayerMovement.cs +++ b/Assets/Scripts/Player/Movement/PlayerMovement.cs @@ -53,7 +53,7 @@ public class PlayerMovement : MonoBehaviour private void PlayerInput_OnNewMoveData(MoveData moveData) { - rb.AddForce(moveData.Movement * moveSpeed); + rb.AddForce(moveData.Movement * moveSpeed * Time.deltaTime); } void OnCollisionStay2D(Collision2D collision)