Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How can I generate an infinite spline road?

Discussion in 'Scripting' started by Deleted User, Sep 5, 2015.

  1. Deleted User

    Deleted User

    Guest

    Hi. I'm working on an abstract racing game and I'm a little unsure of something. I would like to generate an infinite spline based road like the one seen here. I know there are several road editors in the asset store, but I want the road to be created as the player is racing. What would I start looking into in order to figure this out? Thanks.
     
  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    Catlike Coding has a great article on generating paths like that, you should be able to just generate new paths that share a start point with the ending point of the previous section and create an endless series like that.