mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix missed XZY -> XYZ conversion in dtNavMesh::getPolyHeight
Should set height to Z.
This commit is contained in:
parent
5c467f5a49
commit
cf755b286b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user