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"

How to apply a nav mesh to a tile map?

Hi everyone, I'm creating a top down tile based game. I created a tile map shown below, its on the X/Z axis. I surrounded it with a nav mesh volume.

alt text

I created a simple pawn class and am using AI Move To in order to move the pawn, but nothing happens. Simple Move To Location also doesn't do anything. I would think that Unreal would use the collision on the map to move around the map, but not movement occurs at all.

alt text

For some reason AI Move To outputs success even though the pawn does not move at all.

I know that nav meshes are used for movement AI on a map, but I'm not too sure how it works with tile maps in Unreal. Does anyone have advice on how AI movement works with tile maps?

Product Version: UE 4.10
more ▼

asked Mar 29 '16 at 12:37 AM in Using UE4

avatar image

1 1 1 3

avatar image Augurkel Feb 18 '19 at 08:50 AM

I've run into the same problem, as well as the nav mesh not updating when you change the tilemap.

avatar image ThompsonN13 Feb 18 '19 at 02:38 PM

normal nav mesh usually is built on the x/y axis. im not sure about working with tilemaps and such, but i would try changing the perspective by having your "ground" on the x/y axis. also in the editor try pressing the P key to show nav data (its a green plain) if nothing shows then theres probably no nav data being created.

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

1 answer: sort voted first

I got it to work! I think the main issue was that I had my pawns set to 'flying' as standard movement, but if you rotate your tilemap with your Z axis facing up, you should set the movement to 'Walking'. Also make sure your map is large, my pixel style game was pretty dang tiny, nav mesh works better with a lot of space. My move to node in the BT also seems to flip out when the Agent Radius in the RecastNavMesh is lower than 31. What also seemed to help was simply reloading the project, that fixed the nav mesh not updating for me. Hope this helps some people out!

more ▼

answered Feb 18 '19 at 03:01 PM

avatar image

6 1 1

(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