- Home /
Navmesh wandering how do you do that?
Hello,
I have a short but for me hard question. How to make the navmeshagent wander around inside his area? Its for my ai. the only thing he must do is walk around. But i dont know how!
thank you in advance!
Rick Grendel
Answer by Tanshaydar · Nov 21, 2014 at 01:29 PM
You add navmesh agent to your ai character and add waypoints to this navmesh agent.
Ok, but i will the randomness inside this so do you know something how i can let the agent choose between the waypoints?
You want dynamic wandering without waypoints? With waypoints you can dynamically change the sorting randomly. Without waypoints, you will have to randomly create a waypoint on the runtime and assign.
Answer by Jeff-Kesselman · Nov 21, 2014 at 06:04 PM
Typically this is done with steering behaviors. Not navmeshes.
Navmeshes are specifically for getting to a well know destination point.
http://gamedevelopment.tutsplus.com/series/understanding-steering-behaviors--gamedev-12732