public static float updateValue(float current,float target,float factor){
  float times=(System.currentTimeMillis() - ClientUtils.lastUpdate) / 16.666666666666668F;
  float off=(off=target - current) > 0.01F || off < -0.01F ? off * (float)Math.pow(factor,times) : 0.0F;
  return target - off;
}

public static float updateValue ( float current , float target , float factor ) { float times = ( System . currentTimeMillis ( ) - ClientUtils . lastUpdate ) / 16.666666666666668F ; float off = ( off = target - current ) > 0.01F || off < - 0.01F ? off * ( float ) Math . pow ( factor , times ) : 0.0F ; return target - off ; }
update a value with a custom factor . how higher the factor , how slower the update . the value will get updated slower if the user has a low framerate .
