I am trying to develop similar game like SWERVE. I have created endless road using pool of five models (Road, Road Small, Road Tiny, Corner and Checkpoint). My script for car also working fine. I am only stuck on terrain.
I really don’t know what should be logic for endless terrain here, because road is not straight. What should be size of each terrain block?
Or first I create terrain and then that terrain generate road?
I tacked by creating a 6x6 grid of blocks. Each block has a script which compares its location with player and when distance between block and player is greater than half of grid size + block size then I move block to new location which in front of a player.