Merge branch 'player-info'

This commit is contained in:
juliuse98
2021-11-04 08:21:22 +01:00
9 changed files with 361 additions and 14 deletions

View File

@@ -84,7 +84,6 @@ public class PlayerController : NetworkBehaviour
}
groundAngle = Vector3.Angle(hit.normal,transform.up);
Debug.Log(moveGroundAngle);
}
}
private void Sprint()
@@ -118,7 +117,7 @@ public class PlayerController : NetworkBehaviour
if (Input.GetButtonDown("Jump") && isGrounded)
{
//Debug.Log("Jump");
velocityY += Mathf.Sqrt(jumpHeight * 4f);
velocityY += Mathf.Sqrt(jumpHeight * -2f * gravity);
}
inputDirection = new Vector3(Input.GetAxisRaw("Horizontal"),0, Input.GetAxisRaw("Vertical")); //Get Inputs