MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / containerSearchCurrDist

Method containerSearchCurrDist

Engine/source/scene/sceneContainer.cpp:1337–1348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1335//-----------------------------------------------------------------------------
1336
1337F32 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

Callers 1

sceneContainer.cppFile · 0.80

Calls 4

sizeMethod · 0.45
getCenterMethod · 0.45
getWorldBoxMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected