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

Method getMountedObject

Engine/source/scene/sceneObject.cpp:1174–1183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172//-----------------------------------------------------------------------------
1173
1174SceneObject* SceneObject::getMountedObject(S32 idx)
1175{
1176 if (idx >= 0) {
1177 S32 count = 0;
1178 for (SceneObject* itr = mMount.list; itr; itr = itr->mMount.link)
1179 if (count++ == idx)
1180 return itr;
1181 }
1182 return NULL;
1183}
1184
1185//-----------------------------------------------------------------------------
1186

Callers 2

sceneObject.cppFile · 0.80
checkInLosMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected