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

Method getPolyList

Engine/source/T3D/tsStatic.cpp:1474–1493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1472}
1473
1474void TSStaticPolysoupConvex::getPolyList(AbstractPolyList* list)
1475{
1476 // Transform the list into object space and set the pointer to the object
1477 MatrixF i(mObject->getTransform());
1478 Point3F iS(mObject->getScale());
1479 list->setTransform(&i, iS);
1480 list->setObject(mObject);
1481
1482 // Add only the original collision triangle
1483 S32 base = list->addPoint(verts[0]);
1484 list->addPoint(verts[2]);
1485 list->addPoint(verts[1]);
1486
1487 list->begin(0, (U32)idx ^ (uintptr_t)mesh);
1488 list->vertex(base + 2);
1489 list->vertex(base + 1);
1490 list->vertex(base + 0);
1491 list->plane(base + 0, base + 1, base + 2);
1492 list->end();
1493}
1494
1495void TSStaticPolysoupConvex::getFeatures(const MatrixF& mat, const VectorF& n, ConvexFeature* cf)
1496{

Callers 8

findGroundContactMethod · 0.45
findCollisionMethod · 0.45
findGroundContactMethod · 0.45
findCollisionMethod · 0.45
updatePosMethod · 0.45
stepMethod · 0.45
_moveMethod · 0.45
_findContactMethod · 0.45

Calls 9

getTransformMethod · 0.45
getScaleMethod · 0.45
setTransformMethod · 0.45
setObjectMethod · 0.45
addPointMethod · 0.45
beginMethod · 0.45
vertexMethod · 0.45
planeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected