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

Method getAccelerator

Engine/source/ts/tsShape.cpp:2240–2254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2238}
2239
2240TSShape::ConvexHullAccelerator* TSShape::getAccelerator(S32 dl)
2241{
2242 AssertFatal(dl < details.size(), "Error, bad detail level!");
2243 if (dl == -1)
2244 return NULL;
2245
2246 AssertFatal( detailCollisionAccelerators.size() == details.size(),
2247 "TSShape::getAccelerator() - mismatched array sizes!" );
2248
2249 if (detailCollisionAccelerators[dl] == NULL)
2250 computeAccelerator(dl);
2251
2252 AssertFatal(detailCollisionAccelerators[dl] != NULL, "This should be non-null after computing it!");
2253 return detailCollisionAccelerators[dl];
2254}
2255
2256
2257void TSShape::computeAccelerator(S32 dl)

Callers 6

onAddMethod · 0.80
preloadMethod · 0.80
supportMethod · 0.80
getFeaturesMethod · 0.80
supportMethod · 0.80
getFeaturesMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected