I’m trying to make an endless runner and did so by having sort of a treadmill, where you have roadtiles moving on next to the other and when one hits the limit (a cube with collider) it gets teleported to the start and moves forward. Yet my issue is that by doing so, small gaps appear, probably due to the calculation and time beeing amplified. So has anyone a tip on how to fix that ?
in general that behaviour makes sense as you cannot guarantee that the trigger will always exactly trigger when the road element enters the finish line. This way ofc there can be a bit of a gap.
The probably easiest solution would be to keep a reference to the last element that was spawned. Then when you spawn a new element you can set this new elements position in relation to the last element in line. This way it is always dynamically in exact the position that you want it to have.