From 0f7e3ced25ee1138980f4ddfcb37e45fbc54bead Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sat, 5 Dec 2020 13:18:39 -0500 Subject: Discord RPC; Removed jumping function for now --- Assets/Scripts/PlayerMovement.cs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Assets/Scripts/PlayerMovement.cs') 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); -- cgit v1.2.3