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;