Orthographic camera loses focus

Hello, I noticed that my character when falling, begins to slowly lose focus and eventually completely falls off the screen. Is there any way to fix this ? (video attached)

And there is also a moment with lags / glitches with the character, it seems to move as needed, but the sprite itself as if jumping up and down or leaves behind a projection. Maybe you can notice it in the video.

Is the camera attached to your player game object or is it following the position of the player?

1 Like

Follow the go object through the follow function.

Sorry, do you know what could be the problem with visual glitches with the character ?

Since the physical logic was in fixed_update, we needed to replace the update in the camera script with fixed_update. This completely solved the problem.

1 Like