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"

AI Navmesh Runtime Generation Not Working


I am actually on a 3DSide-Scroller project where map is a voxel-typed. It generate a procedural mesh digable like in Minecraft. I'm working on AI part and I have a problem, NavMesh is set to Dynamic but don't rebuild when map is digged, I've searched somes explanations. This will probably come from the fact that the dynamic is not working on a procedural mesh.

More precisely I have an ennemy wich is patrolling. When it see the player, he chase him , so ennemy may jump out of any plateform and can also dig to chase the player underground.

I am looking for a hint that would tell me where to go.

Thanks in advance.

Product Version: UE 4.20
more ▼

asked Jan 31 '19 at 05:39 PM in Using UE4

avatar image

6 2 2

avatar image mrteuy Feb 06 '19 at 01:07 AM

I think you need to have something change that effects the navmesh or else it won't rebuild. In my last comment, I have objects flagged with Can Effect Navigation that does it for me. You may want to look at navinvokers as well - attaching one and forcing an update on one attached to your player.

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

2 answers: sort voted first

Just need to rebuild the mesh. There's a console command, I believe its RebuildNavigation, that was added a while ago. Not sure if they ever added a BP function.

The way I do it is to have an actor that has a component tagged with the Can Effect Navigation, when moved will force an update.

more ▼

answered Feb 01 '19 at 10:46 PM

avatar image

146 2 2 4

avatar image Ashiyama33 Feb 05 '19 at 10:03 AM

I tried the SetAffectNavigation function on my ennemy, but it seems it's not working as expected. Navigation parameters are set to "Dynamic". The navmesh seems to be reloaded but it's not updating when I dig, it should add a path into my tunnel but it doesn't.

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

I have tested your tips. I have set the CanAffectNavigation without any success. When I add a Navigation Invoker to my ennemy, it load navigation around him, but terrain modifications aren't repercuted. Navmesh is loaded and unloaded when it's out of the Invoker radius.

alt text alt text

I have set in Navigation System "Generate Navigation Only Around Navigation Invokers"

alt text

Do you have another advices about these ?

(Also, I was thinking about creating my own navigation system if I can't overtake this problem. But it could be more complicated ^^')

2019-02-07-4.png (629.3 kB)
2019-02-07-5.png (658.7 kB)
2019-02-07-6.png (43.4 kB)
more ▼

answered Feb 07 '19 at 04:09 PM

avatar image

6 2 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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