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

Method buildPolyList

Engine/source/T3D/item.cpp:1031–1045  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029static MatrixF IMat(1);
1030
1031bool Item::buildPolyList(PolyListContext context, AbstractPolyList* polyList, const Box3F&, const SphereF&)
1032{
1033 if ( context == PLC_Decal )
1034 return false;
1035
1036 // Collision with the item is always against the item's object
1037 // space bounding box axis aligned in world space.
1038 Point3F pos;
1039 mObjToWorld.getColumn(3,&pos);
1040 IMat.setColumn(3,pos);
1041 polyList->setTransform(&IMat, mObjScale);
1042 polyList->setObject(this);
1043 polyList->addBox(mObjBox);
1044 return true;
1045}
1046
1047
1048//----------------------------------------------------------------------------

Callers 15

renderPolysoupZodiacsMethod · 0.45
addStaticMethod · 0.45
collisionCallbackMethod · 0.45
collisionFilterFunction · 0.45
defaultFilterFunction · 0.45
nonFilterFunction · 0.45
testObjectMethod · 0.45
testObjectMethod · 0.45
exportToColladaMethod · 0.45
renderCollisionMeshesMethod · 0.45
softSnapSelectionMethod · 0.45

Calls 5

getColumnMethod · 0.80
setColumnMethod · 0.80
setTransformMethod · 0.45
setObjectMethod · 0.45
addBoxMethod · 0.45

Tested by

no test coverage detected