I have a randomly generated maze system, and I have the enemy on one corner, the player on the opposite one. The enemy should just path to the player, but the size of my maze seems to be completely breaking the navmesh, as it refuses to move, and just slightly rotates every second or so. It completely works on smaller mazes, and open planes, so I’m confused as to why it completely stops working. Any ideas?
Can you tell us what “size” stands for in actual units of measurement?
If this spans thousands of meters … well, sure, I’d give up too.
Or perhaps you have choke points, specifically 90 or 180° corners where the navmesh agent simply won’t fit through so it considers this blocked. Try decreasing the agent size to see if it starts moving.
Sorry for the late reply.
Okay, so size specifically is the width of the maze. It’s square, so same on both sides.
The pathways are cell based, it definitely can fit in any place that isn’t just a wall. I also made sure that it properly carves the navmesh.
In unity measurements: 250 by 250 maze. (Would that be meters? I’m not sure)
I wish I could do a screenshot to help visualize, but I’ve messed too much with the lighting and stuff, so it looks terrible.
(EDIT)
I’ve tried it some more today, and now it sometimes breaks for smaller mazes as well.
Good to know, thanks for the info!