In my infinite runner I want to periodically move all game objects and the camera back to 0,0 in game to avoid getting too far away from origin as the player progresses.
How can I do this without showing the wrong positions for one frame? As usual I’m using Orthographic camera.
I’ve attached a minimal example which shows the problem:
- Game object moves to a new location
- Once the animation is finished, the camera moves to the game object location.
- Both the camera and game object are moved back to 0,0.
- The ball moves back instantly, the camera lags one frame behind showing the game object in the wrong position for one frame.
ResetPositions.zip (227.7 KB)