133 handler->
PSendSysMessage(
"%03u%02i%02i.mmtile", player->GetMapId(), gx, gy);
139 if (!navmesh || !navmeshquery)
147 player->GetPosition(x, y, z);
161 handler->
PSendSysMessage(
"Dt [??,??] (invalid poly, probably no tile loaded)");
166 handler->
PSendSysMessage(
"Dt [??, ??] (invalid poly, probably no tile loaded)");
uint64_d dtPolyRef
Definition: DetourNavMesh.h:49
dtMeshHeader * header
The tile header.
Definition: DetourNavMesh.h:284
#define SIZE_OF_GRIDS
Definition: GridDefines.h:39
float orig[3]
The world space origin of the navigation mesh's tile space. [(x, y, z)].
Definition: DetourNavMesh.h:314
const dtNavMeshParams * getParams() const
The navigation mesh initialization params.
Definition: DetourNavMesh.cpp:286
arena_t NULL
Definition: jemalloc_internal.h:624
Player * GetPlayer() const
Definition: WorldSession.h:927
Definition: DetourNavMeshQuery.h:35
dtNavMesh const * GetNavMesh(uint32 mapId, TerrainSet swaps)
Definition: MMapManager.cpp:399
Definition: DetourNavMesh.h:323
dtNavMeshQuery const * GetNavMeshQuery(uint32 mapId, uint32 instanceId, TerrainSet swaps)
Definition: MMapManager.cpp:408
T min(const T &x, const T &y)
Definition: g3dmath.h:305
#define INVALID_POLYREF
Definition: PathGenerator.h:39
Definition: DetourNavMesh.h:153
bool dtStatusSucceed(dtStatus status)
Definition: DetourStatus.h:41
G3D::int16 z
Definition: Vector3int16.h:46
int32_t int32
Definition: Define.h:146
dtStatus getTileAndPolyByRef(const dtPolyRef ref, const dtMeshTile **tile, const dtPoly **poly) const
Definition: DetourNavMesh.cpp:1113
G3D::int16 y
Definition: Vector2int16.h:38
bool dtStatusFailed(dtStatus status)
Definition: DetourStatus.h:47
dtStatus findNearestPoly(const float *center, const float *extents, const dtQueryFilter *filter, dtPolyRef *nearestRef, float *nearestPt) const
Definition: DetourNavMeshQuery.cpp:710
int32_t int32
Definition: g3dmath.h:167
WorldSession * GetSession()
Definition: Chat.h:59
static MMapManager * createOrGetMMapManager()
Definition: MMapFactory.cpp:28
void PSendSysMessage(const char *fmt, Args &&...args)
Definition: Chat.h:72
#define VERTEX_SIZE
Definition: PathGenerator.h:38
G3D::int16 x
Definition: Vector2int16.h:37
Definition: DetourNavMesh.h:279
Definition: DetourNavMeshQuery.h:153