MCPcopy Create free account
hub / github.com/axmolengine/axmol / getObstacleByRef

Method getObstacleByRef

3rdparty/recast/DetourTileCache.cpp:228–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228const dtTileCacheObstacle* dtTileCache::getObstacleByRef(dtObstacleRef ref)
229{
230 if (!ref)
231 return 0;
232 unsigned int idx = decodeObstacleIdObstacle(ref);
233 if ((int)idx >= m_params.maxObstacles)
234 return 0;
235 const dtTileCacheObstacle* ob = &m_obstacles[idx];
236 unsigned int salt = decodeObstacleIdSalt(ref);
237 if (ob->salt != salt)
238 return 0;
239 return ob;
240}
241
242dtTileCacheMeshProcess::~dtTileCacheMeshProcess()
243{

Callers 3

drawObstaclesMethod · 0.80
syncToNodeMethod · 0.80
syncToObstacleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected