Recast: fix missed XZY -> XYZ conversion in dtNavMesh::getPolyHeight

Should set height to Z.
This commit is contained in:
Kawe Mazidjatari 2024-07-16 01:18:01 +02:00
parent 5c467f5a49
commit cf755b286b

View File

@ -779,7 +779,7 @@ bool dtNavMesh::getPolyHeight(const dtMeshTile* tile, const dtPoly* poly, const
// ok.
float closest[3];
closestPointOnDetailEdges<false>(tile, poly, pos, closest);
*height = closest[1];
*height = closest[2];
return true;
}