I tried to draw my problem here.
Actor 1 moves his box forward, position after position. But not every frame, but for example every 4th frame. He still runs on tick and does something else every other frame. If positions get too many, another Actor gets spawned to take care of this new part of the track. Items are handed over if Item is on Position 4 and wants to move forward.
Its more complicated like that but imagine the visual delay because Actor 1 might be on his 4 tick and moves items while Actor 2 is on his 1 tick and moves only in 3 frames again.
How would you approach this to get those actors synced up?
Each Actor moves all of its items forward. To have a smooth handover I need to have their tasks/their ticks synced together in a better way.
See in the video, 1 handover pretty good, 2 handover a little rough, 3 handover clearly delayed
What I will try to do now is to have one actor keep track of it tasks/ticks with a simple variable and all others try read and adjust their start accordingly. Lets seeā¦
Edit: That didnt really worked for me but I qued the placing of the tracks in way that now the handover actor is at task9 while the other is at task8 when the handover is happening. https://i.gyazo.com/9f1fb78c6384632039af71be20936188.mp4