x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Get the Green Areas of a Navmesh from a Blueprint

I am trying to set a randomize waypoint path in my game. I have a navmesh set up, and I am going to be having a target point be spawned in a random location after the AI reaches the first one.

Thing is, I need the target point to spawn in a walkable part of the navmesh, i.e, the green areas of a navmesh.

How can I validate the location of an actor lines within the green portion of a given navmesh?

Product Version: UE 4.12
Tags:
more ▼

asked Jun 10 '16 at 07:22 AM in Using UE4

avatar image

Willard720
308 16 25 55

avatar image eagletree Jun 10 '16 at 01:32 PM

I won't answer since that will tend to stop others from giving you a good answer, but in this thread, https://forums.unrealengine.com/showthread.php?1270-UE4-Pathfinding-basic-AI, the 5th post down addresses this. You will note in his comments after the blueprint, that he says "call GetRandomPoint/GetRandomPointInRadius functions (leave NavData and FilterClass empty) to pick random points on navmesh". I haven't tried this because I'm not quite there, but I found it because I was looking to solve the same issue for myself, the vector return point from that function might provide you the spawn location already within the navmesh (or that's how I read it). If you try this and it works, I'd like to know too.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question