mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
debug of distance should be float and not integer
This commit is contained in:
parent
e2cb1866ed
commit
7744685de4
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ void *sendBuffer(void *args)
|
|||
|
||||
float minCoefficient = std::min(1.0f,
|
||||
powf(0.5, (logf(DISTANCE_RATIO * distanceToAgent) / logf(3)) - 1));
|
||||
printf("The distance between the two agents is %d\n", distanceToAgent);
|
||||
printf("The distance between the two agents is %f\n", distanceToAgent);
|
||||
printf("The DC between agent %d and %d is %f\n", agent->getAgentId(), otherAgent->getAgentId(), minCoefficient);
|
||||
distanceCoeffs[lowAgentIndex][highAgentIndex] = minCoefficient;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue