Replies: 1 comment 11 replies
-
In this case we could expose We could also provide its inverse i.e. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given a polygon reference
polyRef
(a number) we can visualise it usingtile.detailMeshes(tilePolyIndex)
as ingetDebugNavMesh
.In particular:
polyRef
is global over the entire navMesh0 ≤ tilePolyIndex < tile.polyCount()
.In order to map between them I am currently building a lookup from
poly.raw.ptr
to each respectivetilePolyIndex
. I also have to update this lookup whenever a tile changes e.g. add/remove obstacle.Is there a better way?
Beta Was this translation helpful? Give feedback.
All reactions