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

Method getMountedObjectNode

Engine/source/scene/sceneObject.cpp:1187–1196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185//-----------------------------------------------------------------------------
1186
1187S32 SceneObject::getMountedObjectNode(S32 idx)
1188{
1189 if (idx >= 0) {
1190 S32 count = 0;
1191 for (SceneObject* itr = mMount.list; itr; itr = itr->mMount.link)
1192 if (count++ == idx)
1193 return itr->mMount.node;
1194 }
1195 return -1;
1196}
1197
1198//-----------------------------------------------------------------------------
1199

Callers 1

sceneObject.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected