How to check if a point is reachable on NavMesh

Xarol
Sun, 23 Nov 2014 04:25:36 +0000
Blueprint

Sorry for asking what must be an obvious newbie question. I searched for a while and couldn’t figure it out.

How do I check if a given target point is reachable on the NavMesh? For example, I want my critter to run from the player so I create a vector from the player to critter, rescale it, and add it to the critter location to get the target. But if the target point is outside the NavMesh (e.g., if the critter is in a corner) then the critter will just stand in the corner. I’d like to say that if the first approach doesn’t yield a valid point then just go to a random location.

Please advise on how to check if a given point is reachable on the NavMesh or a better way to accomplish the above.

Goal is to do this using blueprint.

Thanks,
-X

6 posts - 1 participant