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

Method process

3rdparty/recast/DetourNavMeshQuery.cpp:867–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865 bool overflowed() const { return m_overflow; }
866
867 void process(const dtMeshTile* tile, dtPoly** polys, dtPolyRef* refs, int count)
868 {
869 dtIgnoreUnused(tile);
870 dtIgnoreUnused(polys);
871
872 int numLeft = m_maxPolys - m_numCollected;
873 int toCopy = count;
874 if (toCopy > numLeft)
875 {
876 m_overflow = true;
877 toCopy = numLeft;
878 }
879
880 memcpy(m_polys + m_numCollected, refs, (size_t)toCopy * sizeof(dtPolyRef));
881 m_numCollected += toCopy;
882 }
883};
884
885dtCollectPolysQuery::~dtCollectPolysQuery()

Callers 2

buildNavMeshTileMethod · 0.45
queryPolygonsInTileMethod · 0.45

Calls 1

dtIgnoreUnusedFunction · 0.85

Tested by

no test coverage detected