Code: Select all
...
for(std::vector<springai::AIFloat3>::iterator i = metalSpots.begin(); i != metalSpots.end(); ++i) {
...
int length = callback->GetPathing()->GetApproximateLength(commanderUnit->GetPos(), *i, 0, 8.0f);
...}
...
armcom position: (2565.161133, 120.874695, 4570.481934)
spot position: (5960.000000, 2039.000000, 520.000000)
length: 0
spot position: (9720.000000, 2039.000000, 776.000000)
length: 0
and so on.
why is that?