ARecastNavMesh::GetPolysWithinPathingDistance() Incorrect discription or implementation
This uses your modified dtNavMeshQuery::findPolysAroundCircle() which works exactly how its supposed to.
findPolysAroundCircle() doesn't return polys within the pathing distance but rather returns polys that are navigable from within the circles radius (better visual description in the video below).
Here's a video flood filling the navmesh by increasing the PathingDistance over time and drawing the returned polys. The first half of the video (cyan) shows the current implementation. The second half (purple) is my hacky implementation of what I believe the description wants this function to do.
Maybe I'm just interpreting this function wrong and everything is working as intended.
asked Jun 10 '14 at 12:59 PM in Bug Reports
Thanks for reporting this bug. Looking at that function I can confirm, that we compare current path distance with squared threshold, which ends up accepting polys that are way too far - altough I'd need to check it in action to see it that's the only problem.
Btw, best repro video I've seen around here! :)
answered Jun 11 '14 at 07:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here