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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Add NavMesh Volume to actors

I have made a game like temple run and am having troubles with the AI following the runner. I thought it was because I didn't add a navmesh volume. So I added one, scaled it up a little too much, and my computer froze. The track I'm running on generates itself so the level is pretty much empty until I hit play. Is there a way to add a navmesh volume to the track itself and the AI will follow? I have him/her set up already.

Product Version: UE 4.11
Tags:
more ▼

asked Jul 21 '16 at 05:18 PM in Blueprint Scripting

avatar image

CDP Productions
26 6 9 13

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

1 answer: sort voted first

Hello,

You can look into using a Navigation Invoker. This is a component that you can attach to your character.

The great thing about invokers is that they allow you to use large levels without having the wasted performance of a large, unnecessary Nav Mesh.

To start, go to Edit->Project Settings->Navigation Mesh and set the Runtime Generation to dynamic. Also, go to Edit->Project Settings->Navigation System and check the Generate Only Around Invokers option. Then, you'll need to add a Nav Mesh Bounds Volume to whatever area you will be generating your level in.

After you've done this, go into the character(s) that you'd like to be able to use the Nav Mesh and add a Navigation Invoker component. This will allow you to alter the settings however you'd like as far as how far you want it to generate and how far away you'd like it to be before it begins removing the unused sections of the Nav Mesh.

Let me know if you run into any trouble with this.

Have a great day

more ▼

answered Jul 21 '16 at 05:24 PM

avatar image

Sean L ♦♦ STAFF
43.8k 485 152 440

avatar image CDP Productions Jul 21 '16 at 05:37 PM

It worker, but is there any way to not add a Nav Mesh volume and the AI still be able to move? That's really the problem.

avatar image Sean L ♦♦ STAFF Jul 21 '16 at 05:41 PM

In order to generate the Nav Mesh, you'll need to have the bounds volume. If you have a particularly large level, you can also consider streaming in sublevels to account for performance. You can find more information on that here: https://docs.unrealengine.com/latest/INT/Engine/LevelStreaming/WorldBrowser/index.html

avatar image CDP Productions Jul 21 '16 at 05:47 PM

Nevermind. It works beautifully.

avatar image Gomez_Elguabo Jan 08 '19 at 01:05 PM

So i will set he auto generate navigation from the editor settings to false not to build the nav mesh but still use the nav mesh volume to make a bound to navigation did i understand right?

(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