| 1335 | //----------------------------------------------------------------------------- |
| 1336 | |
| 1337 | F32 SceneContainer::containerSearchCurrDist() |
| 1338 | { |
| 1339 | AssertFatal(mCurrSearchPos != -1, "Error, must call containerSearchNext before containerSearchCurrDist"); |
| 1340 | |
| 1341 | if (mCurrSearchPos == -1 || mCurrSearchPos >= mSearchList.size() || |
| 1342 | bool(*mSearchList[mCurrSearchPos]) == false) |
| 1343 | return 0.0; |
| 1344 | |
| 1345 | Point3F pos; |
| 1346 | (*mSearchList[mCurrSearchPos])->getWorldBox().getCenter(&pos); |
| 1347 | return (pos - mSearchReferencePoint).len(); |
| 1348 | } |
| 1349 | |
| 1350 | //----------------------------------------------------------------------------- |
| 1351 |
no test coverage detected