Fixed an issue regarding player jump not getting canceled in a few cases
private void OnControllerColliderHit(ControllerColliderHit hit)
{
if (isJumping)
bool isMovingUpwards = verticalMovement > 0f;
if (isMovingUpwards)
// Making sure the collision is near the top of the head
float permittedDistance = characterController.radius / 2f;