void updateVelocity(double t)
    {
        double dx, dy;
        
        if (Math.abs(getVelocity()[0] + (force.getX()/getMass())*t) < .6) //Breaks physics by limiting velocity. Might not actually do anything...
            dx = getVelocity()[0] + (force.getX()/getMass())*t;
        else
            dx = getVelocity()[0];
        
        if (Math.abs(getVelocity()[1] + (force.getY()/getMass())*t) < .6)
            dy = getVelocity()[1] + (force.getY()/getMass())*t;
        else
            dy = getVelocity()[1];
        
        
        heading = Math.abs(Math.atan(dy/dx));
        
        if (dx < 0 && dy > 0)
            heading += 90;
        else if (dx < 0 && dy < 0)
            heading += 180;
        else if (dx > 0 && dy < 0)
            heading += 270;
        
        setVelocity(dx, dy);
    }