I am trying to generate a track for an endless runner, the way it should be done, with the track moving towards the player so there will never be any out off bounds issues.
I got my testing track piece with an arrow component used as a spawn location for the next piece ready. Basically the construction is the same as it is in the Epic’s tutorial. But my track pieces are moving towards the player and this makes a huge difference. The Engine is unable to spawn the new piece at the exact location of the Spawn Transform provided.
The operation seems fairly simple. The reference for the spawn point is stored in the variable. Once my track piece passes the -5000 location on X:
The spawn event is triggered:
Yet it can not do it precisely. I can easily see where the new pieces are spawned as there are artifacts on the connecting edges. And the pieces aligned manually fit perfectly of course.