How do i check if my player is grounded? Because its kind of annoying how my player can jump in mid air. This is the script im using, its in Java Script: var jumpSpeed: float = 8; function Update () { if (Input.GetKeyDown (KeyCode.Space)){ rigidbody.velocity.y = jumpSpeed; } } You could do a short Raycast in the down direction to check if the ground is there. “short” in this case means the distanc
