Removed normalized vector

This commit is contained in:
OverflowNarhoym
2022-02-23 10:23:58 +01:00
parent 9d0f9e620c
commit ba34a2ffb7
4 changed files with 219 additions and 166 deletions

View File

@@ -206,7 +206,7 @@ namespace Player
private void Jump()
{
BaseSpeed = MaxAirSpeed;
_playerRigidbody2D.velocity = Vector2.up.normalized * DefaultJumpForce;
_playerRigidbody2D.velocity = Vector2.up * DefaultJumpForce;
_canJump = false;
}