MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / getMountedObject

Method getMountedObject

Engine/source/scene/sceneObject.cpp:994–1003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992//-----------------------------------------------------------------------------
993
994SceneObject* SceneObject::getMountedObject(S32 idx)
995{
996 if (idx >= 0) {
997 S32 count = 0;
998 for (SceneObject* itr = mMount.list; itr; itr = itr->mMount.link)
999 if (count++ == idx)
1000 return itr;
1001 }
1002 return NULL;
1003}
1004
1005//-----------------------------------------------------------------------------
1006

Callers 2

sceneObject.cppFile · 0.80
checkInLosMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected