how to generate the path or road in unity 3d

i am doing one project in unity . and i want to generate the path or road automatically for my car race game .actually i want to my road will be like a curve

thanks in advance

1 Answer

1

There are two approaches:

  1. Think of the problem like a kids train set. Build sections of road that fit together. The problem with this, just as with a real kids train set, is it can be hard to make the pieces align properly at the end.
  2. Use a spline that you can position the nodes randomly and then extrude the road sideways from this spline.

I’d pick 2, but then I love splines. :wink: