How to check if a point is reachable on NavMesh
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.
asked Nov 23 '14 at 04:25 AM in Blueprint Scripting
The best way to do this is to use the "is Valid" node for AI Navigation. If the point is not valid, run the check again to find a proper location for your AI to move to.
answered Nov 24 '14 at 04:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here