Best pathfinding for large open world

Hey !

I’m working on a large open world game, where the player can set up shelter. If I’m correct, Unity requires all gameobjects to be static for the built in navigation to work ?
If so, can I instantiate the shelter and then make it static, or do I need a dynamic alternative ?

And it needs to be suitable for a large open world, I’ve seen many examples on alternatives but only on 20x20 maps. Any ideas ?

Objects do not all have to be static to block pathfinding. If you are talking about Nav Mesh, you can use NavMesh Obstticles to have AI avoid the objects. http://unity3d.com/learn/tutorials/modules/beginner/navigation/navmesh-obstacles

Alternatively, you can always just write your own AI using raycasts.

If you use Aron Granberg’s Astar Pathfinding Project, you can assign any mesh, including procedurally generated ones, to it’s NavMesh graph at runtime. You can also combine meshes beforehand to make a bigger one for that purpose.

Hi AndreasC

Apex Path could be another solution Unity Asset Store - The Best Assets for Game Making
it supports adding and removing dynamic obstacles and works with procedural worlds!
plenty of tutorials to get started http://apexgametools.com/apex-path-tutorials/

Hi,

actually i think that for an open world game pathfinding wouldn’t be the best solution i recommend you experiment with waypoints(predefined or random) or random movement ie altering its path with the obstacles which come its way.