mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix bug in dtNavMesh::findNearestPolyInTile (XZY -> XYZ)
Hight should always be on the Z axis.
This commit is contained in:
parent
740c593197
commit
98a8898a43
@ -854,7 +854,7 @@ dtPolyRef dtNavMesh::findNearestPolyInTile(const dtMeshTile* tile,
|
||||
rdVsub(diff, center, closestPtPoly);
|
||||
if (posOverPoly)
|
||||
{
|
||||
d = rdAbs(diff[1]) - tile->header->walkableClimb;
|
||||
d = rdAbs(diff[2]) - tile->header->walkableClimb;
|
||||
d = d > 0 ? d*d : 0;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user