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

Method getAccelerator

Engine/source/ts/tsShape.cpp:2186–2200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2184}
2185
2186TSShape::ConvexHullAccelerator* TSShape::getAccelerator(S32 dl)
2187{
2188 AssertFatal(dl < details.size(), "Error, bad detail level!");
2189 if (dl == -1)
2190 return NULL;
2191
2192 AssertFatal( detailCollisionAccelerators.size() == details.size(),
2193 "TSShape::getAccelerator() - mismatched array sizes!" );
2194
2195 if (detailCollisionAccelerators[dl] == NULL)
2196 computeAccelerator(dl);
2197
2198 AssertFatal(detailCollisionAccelerators[dl] != NULL, "This should be non-null after computing it!");
2199 return detailCollisionAccelerators[dl];
2200}
2201
2202
2203void TSShape::computeAccelerator(S32 dl)

Callers 5

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