0
\$\begingroup\$

I am following this tutorial to create a game with random generated mazes:

http://catlikecoding.com/unity/tutorials/maze/ 

I want to add some monsters to roam around the newly created maze. How can I create navmesh for this kind of random generated environment?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Please describe here what you're doing. We will not go and read the tutorial; all the information to answer your question should be posted here. \$\endgroup\$ Commented Mar 23, 2016 at 13:50
  • \$\begingroup\$ AFAIK Unity does not have any options to create or update a Navmesh at runtime, you'll have to build it yourself which imho is not a trivial problem to solve. \$\endgroup\$ Commented Mar 23, 2016 at 15:19

1 Answer 1

1
\$\begingroup\$

You could achieve something similar to what you are describing using NavMesh Obstacles. The idea here is that you would create a flat surface that has a baked Navmesh on it, then place walls that have the NavMesh Obstacle Component attached.

This will cut out the NavMesh around each wall, given you the desired effect. Although I've used obstacles before, it's only ever been on small NavMeshes so I can't comment on how efficient this solution would be for you.

A tutorial on NavMesh Obstacles can be found here

\$\endgroup\$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.