Merge pull request #430 from birarda/master

tune the distance attenuation to be a little less dramatic
This commit is contained in:
birarda 2013-05-24 16:33:19 -07:00
commit b883f4073d

View file

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