Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Cinemachine camera "skips" around.

Discussion in '2D' started by Anvilsoft, Dec 28, 2018.

  1. Anvilsoft

    Anvilsoft

    Joined:
    Dec 20, 2018
    Posts:
    9
    Hi Everyone!
    I am testing out physics in Unity, and I created a small vertical platformer.
    It's supposed to be confined to the screen width, but I used Cinemachine to follow the player smoothly as it climbs up.

    I Am using the attache settings. The x dead zone is set to the viewport width, and there is no way for the player to go beyond it.

    Unfortunately, if I allow x rotation and spin the sprite as it jumps, sometimes the camera just skips to one side and is no more centered.

    Has anyone come across this issue already? Is there a way to completely lock the x axis eventually?

    Thanks in advance.
     

    Attached Files:

  2. Anvilsoft

    Anvilsoft

    Joined:
    Dec 20, 2018
    Posts:
    9
    Sorry for the double post, I just noticed the cinemachine forum, could a moderator please move my thread there?
    Sorry for the trouble.