The problem is solved) This is a bug due to the drawing of the debug rays. For some reason, because of them, the camera was moving, but without them everything is OK))