Is there a way to define rodas in unity for AI movement?
I have a huge map (terrain) that have roads. Is there a way in unity to make AI walk from one point to the other through this roads? I know the existence of navmesh, but it is generated for all the map. I couldn't find a way to define it in the roads.
Answer by G4merSylver · Dec 14, 2015 at 07:02 PM
Not sure how you built your AI, how about creating several gameobjects connected in an one-dimensional array and moving the AI along this way?
I haven't build it yet. I wanted to know if unity has something to help with that, like the navmesh, where you just define the target and unity take care of most of the work. I can't use navmesh because it will build of all map, and I want just some roads defined by me. If I need to do all the coding for it there are several options that I can explore.
Your answer
Follow this Question
Related Questions
How do I highlight all available paths with Dijkstra's algorithm on a tile based map? 2 Answers
NavMesh agent moving to unassigned target 1 Answer
Simple AI, Pathfinding 0 Answers
Move when pressed but only within confines of a path 0 Answers
How to know which point that AI picked to move to? (A* Pathfinding) 0 Answers