public static float RoundToMultiple(float f, float multiple) { float factor = 1/multiple; f *= factor; f = Mathf.Round(f); f /= factor; return f; }
void RoundAdjustments() { wheelHeight = Utils.RoundToMultiple(wheelHeight, 0.020f); algScale = Utils.RoundToMultiple(algScale, 0.020f); }