Search Unity

Endless Runner forcing player to follow height and direction changes

Discussion in 'Scripting' started by realdka13, Jun 19, 2018.

  1. realdka13

    realdka13

    Joined:
    Jun 19, 2018
    Posts:
    23
    In my endless runner I want to have direction changes and elevation changes randomly, I can spawn the track fine, but how are some ways I can make sure the player follows these? And also curve around a corner instead of hard 90 degree turns.

    The only thing I can think of is to set up a trigger box, and while the player is in the trigger box they move up,down,etc. But in that case im not sure how it would curve rather than move in a straight line.

    Picture attached to show what I mean.
     

    Attached Files: