Best approach to model a road network

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By quiqueqs

I want to create something like a road network, similar to the screenshot, with vertices and segments (so basically an undirected graph), to be able to apply A* to it, and move vehicles along the paths.

What is the best way to be able to model (draw/edit) these within the Editor? Does it need to be a 100% custom-built script which listens to input events, draw lines, etc., or is there a simpler way which re-uses existing nodes?

enter image description here

How about paths. You can make the car follow it by using the pathfollow nodes.

magicalogic | 2021-06-30 04:38