All examples · Sprites and 2D · As Markdown, for AIs

Camera with useLateUpdate

What this example shows

useLateUpdate runs after every useUpdate of the scene, tweens and physics included, so a camera there reads where the player ended up this frame.

Press T to move the camera into useUpdate instead. The scene runs before the objects inside it, so the camera reads the player one step late: watch the white marker at the centre of the screen and the off-centre reading jump every time the player starts or stops.

Starting
Starting
—