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

Method buildPolyList

Engine/source/forest/forestCollision.cpp:265–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265bool Forest::buildPolyList( PolyListContext context, AbstractPolyList* polyList, const Box3F &box, const SphereF &sphere )
266{
267 if ( context == PLC_Decal )
268 return false;
269
270 // Get all ForestItem(s) within the box.
271 Vector<ForestItem> trees;
272 if ( mData->getItems( box, &trees ) == 0 )
273 return false;
274
275 polyList->setObject(this);
276
277 bool gotPoly = false;
278
279 for ( U32 i = 0; i < trees.size(); i++ )
280 gotPoly |= trees[i].buildPolyList( polyList, box, sphere );
281
282 return gotPoly;
283}
284
285bool ForestItem::buildPolyList( AbstractPolyList* polyList, const Box3F &box, const SphereF &sphere ) const
286{

Callers 2

getPolyListMethod · 0.45
buildPhysicsRepMethod · 0.45

Calls 6

Point3FClass · 0.70
getItemsMethod · 0.45
setObjectMethod · 0.45
sizeMethod · 0.45
setTransformMethod · 0.45
getShapeInstanceMethod · 0.45

Tested by

no test coverage detected