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

Method addObject

Engine/source/ts/tsPartInstance.cpp:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64//-------------------------------------------------------------------------------------
65
66void TSPartInstance::addObject(S32 objectIndex)
67{
68 if (mSourceShape->mMeshObjects[objectIndex].forceHidden ||
69 mSourceShape->mMeshObjects[objectIndex].visible < 0.01f)
70 // not visible, don't bother
71 return;
72
73 mMeshObjects.push_back(&mSourceShape->mMeshObjects[objectIndex]);
74}
75
76void TSPartInstance::updateBounds()
77{

Callers 1

breakShapeMethod · 0.45

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected