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

Method testObjects

Engine/source/T3D/trigger.cpp:414–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412//------------------------------------------------------------------------------
413
414void Trigger::testObjects()
415{
416 Vector<SceneObject*> foundobjs;
417 foundobjs.clear();
418 if (getSceneManager() && getSceneManager()->getContainer() && getSceneManager()->getZoneManager())
419 getSceneManager()->getContainer()->findObjectList(getWorldBox(), mTrippedBy, &foundobjs);
420 else return;
421
422 for (S32 i = 0; i < foundobjs.size(); i++)
423 {
424 GameBase* so = dynamic_cast<GameBase*>(foundobjs[i]);
425 if (so)
426 potentialEnterObject(so);
427 }
428}
429
430//--------------------------------------------------------------------------
431

Callers

nothing calls this directly

Calls 5

getZoneManagerMethod · 0.80
findObjectListMethod · 0.80
clearMethod · 0.45
getContainerMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected