- Home /
 
 
               Question by 
               tomazsaraiva · Jan 08, 2010 at 02:20 PM · 
                aisteeringpath-finding  
              
 
              NPCs random movement
Hi,
I want to create a city with some NPCs walking around between the buildings.
How can I create a random movement for the NPCs?
Thanks
               Comment
              
 
               
              Answer by duck · Jan 08, 2010 at 02:30 PM
You might want to look into pathfinding solutions. There are already a number of answers on this site which discuss various pathfinding implementations, such as this one:
If you have more specific questions that are particular to your implementation, come back and ask!
Answer by Ricardo · Jan 08, 2010 at 04:24 PM
A simple approach would be:
- Create either a waypoint network or a navmesh for your scene with Angry Ant's Path
 - Pick a random point to move to
 - Obtain a path to that point
 - Use UnitySteer's PathFollower to move to it, as described on this answer
 
Your answer
 
             Follow this Question
Related Questions
unitysteer and path 1 Answer
Steering Overcompesation 0 Answers
Problems with raycast obstacle avoidance 1 Answer
Entegrating AIFollow.cs and Wayfinder.js (A* Pathfinding Aron) 0 Answers