recastnavigation / recastnavigation

Industry-standard navigation-mesh toolset for games

Home Page:http://recastnav.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why use dtMathFloorf to calculate tx1/ty1 (max_x/max_y) but not dtMathCeilf in dtTileCache::queryTiles

EfveZombie opened this issue · comments

https://github.com/recastnavigation/recastnavigation/blame/603dc88e5d7fb0b1c273cff14bbdbf01506b7700/DetourTileCache/Source/DetourTileCache.cpp#L493

I tried to generate dtTileCache back from dtNavMesh, and found the obstacle not working in some case because dtTileCache::queryTiles return 0 result.

DId I miss any guarantees in dtTileCache?

I found I misused the borderSize cause this problem... The code is correct, never mind.