diff options
Diffstat (limited to 'Assets/Scripts/PlayerMovement.cs')
| -rw-r--r-- | Assets/Scripts/PlayerMovement.cs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Assets/Scripts/PlayerMovement.cs b/Assets/Scripts/PlayerMovement.cs index cf131be..988bb88 100644 --- a/Assets/Scripts/PlayerMovement.cs +++ b/Assets/Scripts/PlayerMovement.cs @@ -8,8 +8,6 @@ public class PlayerMovement : MonoBehaviour public float gravity = -9.81f;
- public float jumpHeight = 3f;
-
public Transform groundCheck;
public float groundDistance = 0.4f;
@@ -36,11 +34,6 @@ public class PlayerMovement : MonoBehaviour controller.Move(move * speed * Time.deltaTime);
- if (Input.GetButtonDown("Jump") && isGrounded)
- {
- velocity.y = Mathf.Sqrt(jumpHeight * -2f * gravity);
- }
-
velocity.y += gravity * Time.deltaTime;
controller.Move(velocity * Time.deltaTime);
|
