Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Target shifts off center with Cinemachine

Discussion in 'Cinemachine' started by AnSupp, Feb 19, 2023.

  1. AnSupp


    Apr 12, 2021
    I'm making a 2D game and using Cinemachine to follow the player.
    The issue is that target shifts off camera center and shifts the camera look.
    Attaching screenshots.

    1. Using Bounding Shape 2D. The center is far enough from yellow dot. I think in this case it's okay, because CMcamera is limited from left and below. But I wonder Is there any way to fix it? This situation doesn't allow camera to follow player during jumping :C
    2. Without Bounding Shape 2D. I click play and can move horizontally - center is in the middle. But if I jump. Yellow dot attaches to the bottom of Dead Zone, and camera view shifts.

    I tried to make a new CMcamera, didn't work. Also, I thought Animations can cause such problems - turned them off, but still no result.

    Please help)
    WithBorders.png NoBorders.png CMcamera.png
  2. Gregoryl


    Unity Technologies

    Dec 22, 2016
    The problem is your dead zone. Set it to 0 and then the camera will always put the yellow to there unless it is prevented by the bounding shape.