We forgot time.deltatime...
This commit is contained in:
parent
a86576068f
commit
5a0f47145f
|
@ -53,7 +53,7 @@ public class PlayerMovement : MonoBehaviour
|
||||||
|
|
||||||
private void PlayerInput_OnNewMoveData(MoveData moveData)
|
private void PlayerInput_OnNewMoveData(MoveData moveData)
|
||||||
{
|
{
|
||||||
rb.AddForce(moveData.Movement * moveSpeed);
|
rb.AddForce(moveData.Movement * moveSpeed * Time.deltaTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnCollisionStay2D(Collision2D collision)
|
void OnCollisionStay2D(Collision2D collision)
|
||||||
|
|
Loading…
Reference in New Issue