I pass DT_VERTS_PER_POLYGON as the value for maxSegments to the
dtNavMeshQuery::getPolyWallSegments method. It works well in most
cases, but sometimes it seems that more segments are "detected" and I
get a status with the DT_BUFFER_TOO_SMALL set. I thought that using
DT_VERTS_PER_POLYGON was in line with the comment right above the
method prototype:
"The @p segmentVerts and @p segmentRefs buffers should normally be
sized for the
maximum segments per polygon of the source navigation mesh."
Did I miss something? I fixed it by increasing the value I pass as
maxSegments, but I'd like to have a better understanding of what's
going on.
Thanks for your help in advance!
Do you have example (screenshot) case where buffer is too small?
--mikko
Sent from my iPhone
In that case using maxverts + 1 fixes the problem.
On Nov 22, 1:01 am, Mikko Mononen <memono...@gmail.com> wrote:
> The can potentially be more segments at the tile boundary in case the portals dont match perfectly. I think i used 2*maxverts in my examples.
>
> Do you have example (screenshot) case where buffer is too small?
>
> --mikko
>
> Sent from my iPhone
>
--mikko
--mikko
Sent from my iPhone