Is there a easy way to check if the character is on the navmesh? I’m working on a RPG type game where the player clicks to make the main character walk to that position (think Diablo etc.) At the moment my character can walk through walls on the edge of the map because it paths to the edge of the navmesh and then walks off of it in a straight line to the destination. I’d like to be able to click outside the mesh, but stop the character before he leaves the navmesh so that basically he walks to the closest point on the navmesh to the target point.
Is there a easy way to achieve this?
Hi
This can be done simply by changing the StartEndModifier’s options on the Seeker component.
Namely, you should change End Point from Original to ClosestOnNode.
Now I feel dumb! I didn’t think to look at the seeker.
Thanks for the quick reply.