Recast: more missed XZY -> XYZ changes

This commit is contained in:
Kawe Mazidjatari 2024-07-18 18:06:34 +02:00
parent 98a8898a43
commit 5ec7862b71
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ void NavMeshPruneTool::handleClick(const float* s, const float* p, bool shift)
m_flags->init(nav);
}
const float halfExtents[3] = { 2, 4, 2 };
const float halfExtents[3] = { 2, 2, 4 };
dtQueryFilter filter;
dtPolyRef ref = 0;
query->findNearestPoly(p, halfExtents, &filter, &ref, 0);

View File

@ -632,7 +632,7 @@ void dtNavMesh::baseOffMeshLinks(dtMeshTile* tile)
dtOffMeshConnection* con = &tile->offMeshCons[i];
dtPoly* poly = &tile->polys[con->poly];
const float halfExtents[3] = { con->rad, tile->header->walkableClimb, con->rad };
const float halfExtents[3] = { con->rad, con->rad, tile->header->walkableClimb };
// Find polygon to connect to.
const float* p = &con->pos[0]; // First vertex