mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: more missed XZY -> XYZ changes
This commit is contained in:
parent
98a8898a43
commit
5ec7862b71
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user