- Home /
Question by
Txguug · Sep 10, 2019 at 10:50 AM ·
2dpathfindingprocedural-terrainhex
Connecting the dots
I've created a 2D terrain with hexagons and made some of the tiles red to represent 'settlements'. All terrain data is generated by script.
I wrote a pathfinder script earlier to create roads between settlement A and B.
My question: are there any general approaches / techniques to create a full network of roads between the settlements?
So far I connect each settlement to its closest neighbour. This can be made in to a repeating script until everything is connected but it will result in strange connections eventually or groups that remain unconnected.
The goal is not really to make the most efficient network, but to have at least one way to get from any settlement to another.
Comment