Hi, my cinemachine confiner does not work as expected. There is one wall, where going up with camera “touching” the collider results in a sudden change of camera position, without any smooth transition. When I go down again, camera is stuck and the player is out of view, until I move further.
I tried changing the angle of the wall collider, but with no results.
In general, in some places, even not close to the walls, the camera sometimes does sudden movements, sometimes looses track of the player.
Increasing confiner’s damping helps with sudden movements, but also results in looking outside of the collider a bit.
Why is it happening and how do I fix it?
EDIT: and also in different place:
it doesn’t collide with the collider (without damping on)
I did some research, and it might be that the effect in your gif is a problem in the cinemachine asset. In this thread, somebody wrote they were working on a more robust solution but I do not know if that solution was implemented.
What value does “Interpolate” in your player’s Rigidbody2D component have? Maybe setting it to “Interpolate” could improve the behaviour.
Is the UpdateMethod in the CinemachineBrain component set to “Late Update”?
Before you change your designs, build your game and test your build. Since the game window is just a (laggy) preview, there is a chance that you do not encounter this visual issue in the build.
Also feel free to report a bug to Unity via Help > Report a bug. Send them your gif along with your game. Maybe their programmers know a solution or could fix it in the future.