#Navigationagent isnt reigistering terrain layer "trees"

4 messages · Page 1 of 1 (latest)

wheat sentinel
#

hey guys i have an extremely simpel navigationagent that just makes my npc walk to the player. i made a maze of "grass" around him, adding physics layer to one tile of "grass" and navigation layer to another type of "grass", the navigation path avoids the physic layer of grass.

but when add in trees which are the 2nd TERRAIN LAYER, it ignores them, even tho they have a physics layer.

anyone know why?

rugged latch
#

physics and physics layers are irrelevant for navigation and pathfinding, only the navigation polygons and navigation layers count.

#

Each TileMap Layer with a TileMap NavigationLayer creates its own navigation map and all cells inside that TileMap Layer use the navigation_layers of the TileMap NavigationLayer.

#

If you do not use the default TileMap Layer 0 for pathfinding you will need to switch the navigation agent to other navigation maps as each TileMap NavigationLayer has its own map.