Merge pull request #412 from birarda/master

tune the distance attenuation
This commit is contained in:
birarda 2013-05-23 16:49:29 -07:00
commit 509905fd78

View file

@ -167,7 +167,7 @@ int main(int argc, const char* argv[]) {
float minCoefficient = std::min(1.0f,
powf(0.5,
(logf(DISTANCE_RATIO * distanceToAgent) / logf(3)) - 1));
(logf(DISTANCE_RATIO * distanceToAgent) / logf(2)) - 1));
distanceCoefficients[lowAgentIndex][highAgentIndex] = minCoefficient;
}