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

Method getMapping

Engine/source/collision/depthSortList.cpp:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109//----------------------------------------------------------------------------
110
111bool DepthSortList::getMapping(MatrixF * mat, Box3F * box)
112{
113 // return list transform and bounds in list space...optional
114 *mat = mMatrix;
115 mat->inverse();
116 box->minExtents.set(-mExtent.x, 0.0f, -mExtent.z);
117 box->maxExtents.set( mExtent.x, 2.0f * mExtent.y, mExtent.z);
118
119 return true;
120}
121
122//----------------------------------------------------------------------------
123//----------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

inverseMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected