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

Method getMountedObjectNode

Engine/source/scene/sceneObject.cpp:1007–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005//-----------------------------------------------------------------------------
1006
1007S32 SceneObject::getMountedObjectNode(S32 idx)
1008{
1009 if (idx >= 0) {
1010 S32 count = 0;
1011 for (SceneObject* itr = mMount.list; itr; itr = itr->mMount.link)
1012 if (count++ == idx)
1013 return itr->mMount.node;
1014 }
1015 return -1;
1016}
1017
1018//-----------------------------------------------------------------------------
1019

Callers 1

sceneObject.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected