Generic selectors
Exact matches only
Search in title
Search in content
Search in project

NavMesh Pathfinding

New Atavism 2018.2 comes with support for fully featured NavMesh.

  1. In order to use it, you have to get best Unity side graph baker  A* Pathfinding Project Pro, which is available in your apanel and import it into your project.
  2. Then you should open the scene for which you want to bake the graph
  3. Create an empty game object in the scene.

  4. Add Pathfinder component to it

  5. Expand Optimization tab
  6. Tick the ASTAR_RECAST_LARGER_TILES option and click the Apply button

  7. Click Ok button on the newly opened dialog box

  8. Expand Graphs tab and click Recast Graph option within Add New Graph

  9. Expand Recast Graph by clicking on it

  10. You have to set Use Tiles to Dont Use Tiles option, as we are using 32bit mesh

  11. Rest of the options are depending on your use case, but for example for the MainWorld map which is delivered within Atavism package, parameters which worked best for us are

  12. Click Scan button

  13.  The progress bar should be presented

  14. You can visualize it by changing options Show surface or Show outline with Show Graphs checkbox ticked

  15. Click Save & Load tab

  16. Click Save to file button

  17. Select directory where you want to save it. The most important part is that name of the file must be corresponding to the Atavism instance name, for example, if you are preparing NavMesh Graph for MainWorld Instance then the file should be named as MainWorld.bytes. and click save
  18. In the dialog box click Include node data button

  19. In the dialog box click Don’t scan button

  20. In the dialog box click Ok button

  21. Then on the server side in the directory atavism_server/navmesh/ create the new directory with Atavism Instance Name (in our case it will be MainWorld). It’s important to keep the upper and lower case corresponding with the Instance name in the Atavism Editor.
  22. Copy newly created graph to that created directory on the server
  23. Restart Atavism World Server

Important Note: Your server requirements may be varied if you are using NvMesh as each NavMesh Graph will require additional memory, and 1GB of the minimum required memory may be not sufficient if you are going to use NavMesh functionality.