Search Unity

Generating a curvy path

Discussion in 'Scripting' started by Digitex1, Oct 10, 2018.

  1. Digitex1

    Digitex1

    Joined:
    Aug 28, 2017
    Posts:
    42
    Hello,

    I'm looking for the easiest option to generate a curvy path like the one in this game:

    Youtube gameplay link:


    Would you please share with me what are your toughts about the easiest option?

    Regards,
     
  2. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    They use vertex displacement shader, to shift the road (vertexes on X and Y) at certain distances.
    Probably X and Y curve values is controlled by an actual curve to control the whole "level".

    Level is simply straight line.