How to check the point is on the navmesh?


#1


#2

var node = AstarPath.active.data.navmesh.PointOnNavmesh(point, NNConstraint.Default);
if (node != null) Debug.Log(“On the navmesh when seen from above”);

Maybe I used a sphere world, the function is not work well!


#3

@aron_granberg

I want a player walk on the navmesh, but do not calculate the path.


#4

Firstly thank you so much!


#5

Hi

What do you define as on the navmesh for a spherical world? That is a very fuzzy concept.