how to generate endless road in 3d when camera reaches the end ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mayhem

In 3d How to effieciently generate new floor/ road mesh when player moves and reaches end of current mesh .

:bust_in_silhouette: Reply From: klaas

dont move the player just mode the road mesh backward. When the road is behind the camera remove it. spawn new road if one gets removed behind the camera.