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.
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.
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?
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!
answered Feb 18 '19 at 03:01 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here