Given x-z coordinates, can navmesh returns the y value?

76 views
Skip to first unread message

Jeff Weign

unread,
Jan 2, 2023, 10:13:34 PM1/2/23
to recastnavigation
Hello! It seems recast ignores the y-value difference, so if i have x-z coordinates, is there a way i can get the corresponding y-value on the mesh?

Graham Pentheny

unread,
Mar 15, 2023, 10:37:18 PM3/15/23
to recastnavigation
Hi,
  I'm not sure I fully understand what you're asking, but you can use dtNavMeshQuery::findNearestPoly to find the closest point on the navmesh, which is a full xyz vector.

Graham
Reply all
Reply to author
Forward
0 new messages