using NitroxModel.Helper; namespace NitroxModel.GameLogic.FMOD; public static class SoundHelper { /// /// Volume calculation based on , and max (not 100% realistic) /// public static float CalculateVolume(float distance, float radius, float volume) { if (distance >= 0f && distance < radius) { return Mathf.Clamp01((1f - distance / radius) * volume); } return 0f; } }