mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: set tile cell default height to tile's bmax
A more sane fallback value vs setting it to 0.
This commit is contained in:
parent
4e9cde3d22
commit
40d07f09a4
@ -598,7 +598,7 @@ bool createPolyMeshCells(const dtNavMeshCreateParams* params, rdTempVector<CellI
|
||||
float targetCellPos[3];
|
||||
targetCellPos[0] = params->bmin[0]+j*stepX+offsetX;
|
||||
targetCellPos[1] = params->bmin[1]+k*stepY;
|
||||
targetCellPos[2] = 0; // todo(amos): might need a proper fallback, but so far this never failed.
|
||||
targetCellPos[2] = params->bmax[2]; // note(amos): might need a better fallback, but so far this never failed.
|
||||
|
||||
if (!rdPointInPolygon(targetCellPos, polyVerts, nv))
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user