Question by
MyNameIsRobert · Sep 12, 2017 at 12:21 AM ·
pathfindinggridalgorithm
Connecting Pods/Nodes together on a grid using pathfinding?
Hello, I'm currently working on a Random Level Generation mode for my game, in which I spawn a number of rooms of a uniform size, randomly on a grid. I then would like to connect all of the rooms together to form a cohesive level that the player can explore, though I don't really know how to do this. Attached is an example of what the level would initially spawn. I would like to have each room be connected so that none are inaccessible. What is the best way of doing this?
rlg.png
(10.2 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612134650im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Guys what is wrong with the position of node 0 Answers
Generate 3d Mesh from 2d drawing 0 Answers
[Solved] Dynamic Pathfinding Grid Issue 1 Answer
Movement following the A* algorithm 0 Answers
How to get vector3 grid position for object dynamically 1 Answer