setting up [splines]

  • pathNodes4Splines

sets up nodes after splines are created

sectionLength : the distance between nodes

splineDX is added to splines with all spline points, their NT, and the path nodes for the spline

run it. now we can copy the the created roads network into the scene

.................................

node connections within a spline are set up automatically

but the node connections between splines (crossings) have to be added

  • manually

  • or by setCrossings

set up the crossings by trigger colliders

add the graph to setCrossings.graph (the folder with the created nodes)

run it. the connections get updated

now we can copy the created roads network into the scene (and remove the older setups)

the final driving network

Last updated