From 8ba23bc027241cd594065e0e408cfa13ffc2177d Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 29 May 2013 17:46:54 -0700 Subject: [PATCH] tune distance attenuation --- audio-mixer/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio-mixer/src/main.cpp b/audio-mixer/src/main.cpp index 05ecaa1ed6..982ebc526c 100644 --- a/audio-mixer/src/main.cpp +++ b/audio-mixer/src/main.cpp @@ -166,7 +166,7 @@ int main(int argc, const char* argv[]) { powf(agentPosition.z - otherAgentPosition.z, 2)); float minCoefficient = std::min(1.0f, - powf(0.4, + powf(0.3, (logf(DISTANCE_SCALE * distanceToAgent) / logf(2.5)) - 1)); distanceCoefficients[lowAgentIndex][highAgentIndex] = minCoefficient;