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

Method set

Engine/source/collision/depthSortList.cpp:180–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178//----------------------------------------------------------------------------
179
180void DepthSortList::set(const MatrixF & mat, Point3F & extents)
181{
182 setBaseTransform(mat);
183 mNormal.set(0,1,0); // ignore polys not facing up...
184 mExtent = extents;
185 mExtent *= 0.5f;
186
187 // set clip planes
188 mPlaneList.clear();
189
190 mPlaneList.increment();
191 mPlaneList.last().set(-1.0f, 0.0f, 0.0f, -mExtent.x);
192 mPlaneList.increment();
193 mPlaneList.last().set( 1.0f, 0.0f, 0.0f, -mExtent.x);
194
195 mPlaneList.increment();
196 mPlaneList.last().set( 0.0f,-1.0f, 0.0f, 0);
197 mPlaneList.increment();
198 mPlaneList.last().set( 0.0f, 1.0f, 0.0f, -2.0f * mExtent.y);
199
200 mPlaneList.increment();
201 mPlaneList.last().set( 0.0f, 0.0f,-1.0f, -mExtent.z);
202 mPlaneList.increment();
203 mPlaneList.last().set( 0.0f, 0.0f, 1.0f, -mExtent.z);
204}
205
206//----------------------------------------------------------------------------
207

Callers 2

getMappingMethod · 0.45
overlapMethod · 0.45

Calls 3

incrementMethod · 0.80
clearMethod · 0.45
lastMethod · 0.45

Tested by

no test coverage detected