- Home /
Is it possible to assign a custom path to a NavMeshAgent?
Since the documentation regarding the topic is scarce all of my assumptions are based on intuition and what I've read from other people.
I have a large map and need a path from A to B, but calculatePath only gives me a partial path (because I assume once it reaches a given frame time it ends the calculation); so I have a recursive function that returns the list of points that result from appending the corners of several smaller paths. While the documentation kind of implies that it is possible to do what I'm trying to achieve I have found no way of actually assigning an agent a custom path. Is there any way to generate a path that can be assigned to a NavMeshAgent?
(I figure you could have a generator of paths with a given number of corners and then re-assign the positions of the corners to the path you need... But I don't think that's a great idea.)