mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 20:44:14 +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,
|
||||
powf(0.5,
|
||||
(logf(DISTANCE_RATIO * distanceToAgent) / logf(2)) - 1));
|
||||
(logf(DISTANCE_RATIO * distanceToAgent) / logf(2.5))
|
||||
- 1));
|
||||
distanceCoefficients[lowAgentIndex][highAgentIndex] = minCoefficient;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue