waypoint based pathfinding in a randomly generated area

Hi,

I have a random dungeon generator, which created various paths etc.

I want a basic waypoint based pathfinding system that scans for waypoints at runtime, as I can instantiate waypoints in the right places with my dungeon tiles, but not before. i just want a gameobject to follow a path towards a target based on these waypoints.

Thanks for the help

uhh…bump.

Either include the waypoints with your prefab objects, or use raycasts of a fixed length and add waypoints at the end of each non-blocked cast.