Usually in endless runner game, character stands at its position (0,0,0) only world moves except of jumps.
You can mimic infinite X axis movement by
1) Making terrain blocks reasonably big in x-Axis such that a player won't able to pass through in x-axis until terrain passed back.
2) When player moves in X-Axis, shift all terrain blocks in x-axis.
3) keep creating new terrains at 0,0,Z. ()
There could be dozens of ways but if I would be you then would do like it
↧