77 using SectorID = plUInt32;
79 plVec2I32 CalculateSectorCoord(
float fPositionX,
float fPositionY)
const;
82 float GetSectorSize()
const {
return m_fSectorMetersXY; }
83 SectorID CalculateSectorID(
plVec2I32 vCoord)
const {
return vCoord.y * m_uiNumSectorsX + vCoord.x; }
84 plVec2I32 CalculateSectorCoord(SectorID sectorID)
const;
91 bool RequestSector(SectorID sectorID);
96 bool RequestSector(
const plVec2& vCenter,
const plVec2& vHalfExtents);
103 void InvalidateSector(SectorID sectorID,
bool bRebuildAsSoonAsPossible);
110 void InvalidateSector(
const plVec2& vCenter,
const plVec2& vHalfExtents,
bool bRebuildAsSoonAsPossible);
112 void FinalizeSectorUpdates();
114 SectorID RetrieveRequestedSector();
117 const dtNavMesh* GetDetourNavMesh()
const {
return m_pNavMesh; }
128 plUInt32 m_uiNumSectorsX = 0;
129 plUInt32 m_uiNumSectorsY = 0;
130 float m_fSectorMetersXY = 0;
131 float m_fInvSectorMetersXY = 0;
133 dtNavMesh* m_pNavMesh =
nullptr;
Used in plDebugRenderer to determine where debug geometry should be rendered.
Definition DebugRendererContext.h:11