mirror of
https://github.com/overte-org/overte.git
synced 2025-06-23 22:19:47 +02:00
Merge pull request #430 from birarda/master
tune the distance attenuation to be a little less dramatic
This commit is contained in:
commit
b883f4073d
1 changed files with 2 additions and 1 deletions
|
@ -167,7 +167,8 @@ int main(int argc, const char* argv[]) {
|
||||||
|
|
||||||
float minCoefficient = std::min(1.0f,
|
float minCoefficient = std::min(1.0f,
|
||||||
powf(0.5,
|
powf(0.5,
|
||||||
(logf(DISTANCE_RATIO * distanceToAgent) / logf(2)) - 1));
|
(logf(DISTANCE_RATIO * distanceToAgent) / logf(2.5))
|
||||||
|
- 1));
|
||||||
distanceCoefficients[lowAgentIndex][highAgentIndex] = minCoefficient;
|
distanceCoefficients[lowAgentIndex][highAgentIndex] = minCoefficient;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue