NavMeshGraph and RecastGraph Question

Hi,

Is it possible to use the NavmeshCut with a NavMeshGraph? Also, is it possible to have multiple NavMeshGraphs and link them together to pathfind across them (is it also possible to do this with multiple RecastGraphs)?

Thanks.

Hi

No that is not possible yet. However you can essentially implement a NavmeshGraph using a recast graph.
In the beta there is a new class named TileHandler, you can hook that up to a recast graph ( which uses only a single tile, i.e no tiles ), then you can, via the TileHandler class replace the mesh the recast graph uses and thereby get it to work with navmesh cutting.

See http://arongranberg.com/astar/docs_FeatureFreeze/class_pathfinding_1_1_util_1_1_tile_handler.php#a90d0aa3b8d5816eb1f5811d35eadefc8

and
http://arongranberg.com/astar/docs_FeatureFreeze/class_tile_handler_helper.php

This is a huge workaround, but I think it could work.

Linking multiple navmesh graphs is possible ( using e.g the links tab ), but it is not something I recommend. It is usually very tricky to get them to move smoothly from one graph to another.

Is it specifically NavMeshGraphs which you would not recommend linking? Would RecastGraphs be any different?

I do not recommend linking together two different graphs of any kind.

Navmesh graphs and recast graphs behave very similarly.