public static int checkDown(Rectangle hitbox, int yVelocity){
        
        Point2D cornerLeft = new Point2D.Float(hitbox.x, hitbox.y + hitbox.height);
        Point2D cornerRight = new Point2D.Float(hitbox.x + hitbox.width, hitbox.y + hitbox.height);
        
        Platform closestPlat = LevelManager.platList.get(0);
        int distance = 1000;
        
        for(int i = 0; i < LevelManager.platList.size(); i++){
            Platform tempPlat = LevelManager.platList.get(i);
            if(((cornerLeft.getX() > tempPlat.platRect.x) && (cornerLeft.getX() < tempPlat.platRect.x + tempPlat.platRect.width)) || ((cornerRight.getX() > tempPlat.platRect.x) && (cornerRight.getX() < tempPlat.platRect.x + tempPlat.platRect.width))){
                if(cornerLeft.getY() < tempPlat.platRect.y && cornerRight.getY() < tempPlat.platRect.y){
                    if(tempPlat.platRect.y - cornerLeft.getY() < distance){
                        closestPlat = tempPlat;
                        distance = (int)(tempPlat.platRect.y - cornerLeft.getY());
                    }
                }
            }
        }
        
        if(distance > yVelocity){
            return yVelocity;
        }else{
            return distance - 1;
        }
        
    }