mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
tune distance attenuation
This commit is contained in:
parent
a3942a072f
commit
8ba23bc027
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ int main(int argc, const char* argv[]) {
|
||||||
powf(agentPosition.z - otherAgentPosition.z, 2));
|
powf(agentPosition.z - otherAgentPosition.z, 2));
|
||||||
|
|
||||||
float minCoefficient = std::min(1.0f,
|
float minCoefficient = std::min(1.0f,
|
||||||
powf(0.4,
|
powf(0.3,
|
||||||
(logf(DISTANCE_SCALE * distanceToAgent) / logf(2.5))
|
(logf(DISTANCE_SCALE * distanceToAgent) / logf(2.5))
|
||||||
- 1));
|
- 1));
|
||||||
distanceCoefficients[lowAgentIndex][highAgentIndex] = minCoefficient;
|
distanceCoefficients[lowAgentIndex][highAgentIndex] = minCoefficient;
|
||||||
|
|
Loading…
Reference in a new issue