Random Roaming around

hi, i need some stuff to move around randomly, picking their own path and such, any idea how to do that? (C# please)

  • To chose a random destination : Random.insideUnitSphere * radius;
  • To go there if no obstacle, characterController.SimpleMove, else AngryAnt’s or AronGranberg’s pathfinding.

Use a pathfinding solution that already exists all are either free or cheap. make your waypoints, pick a random waypoint or make an array of objects and select one of those randomly and get the pathfinding to navigate to it.