summaryrefslogtreecommitdiff
path: root/Assets/Scripts/PlayerMovement.cs
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-12-05 13:18:39 -0500
committerAndrew Lee <alee14498@protonmail.com>2020-12-05 13:18:39 -0500
commit0f7e3ced25ee1138980f4ddfcb37e45fbc54bead (patch)
tree33f34ab33f1af5bb3413372030ef25642eedded1 /Assets/Scripts/PlayerMovement.cs
parentdf8769c71a03c4fc47945e39eed16d500f82ad71 (diff)
downloadProject-Sandbox-0f7e3ced25ee1138980f4ddfcb37e45fbc54bead.tar.gz
Project-Sandbox-0f7e3ced25ee1138980f4ddfcb37e45fbc54bead.tar.bz2
Project-Sandbox-0f7e3ced25ee1138980f4ddfcb37e45fbc54bead.zip
Discord RPC; Removed jumping function for now
Diffstat (limited to 'Assets/Scripts/PlayerMovement.cs')
-rw-r--r--Assets/Scripts/PlayerMovement.cs7
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);