mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 09:23:17 +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));
|
||||
|
||||
float minCoefficient = std::min(1.0f,
|
||||
powf(0.4,
|
||||
powf(0.3,
|
||||
(logf(DISTANCE_SCALE * distanceToAgent) / logf(2.5))
|
||||
- 1));
|
||||
distanceCoefficients[lowAgentIndex][highAgentIndex] = minCoefficient;
|
||||
|
|
Loading…
Reference in a new issue