Search Unity

Question Smooth boundaries

Discussion in 'Cinemachine' started by DanielThomas, Apr 14, 2021.

  1. DanielThomas

    DanielThomas

    Joined:
    Mar 30, 2013
    Posts:
    111

    (from Pro Camera 2D, great asset)

    I was looking into adding "smooth boundaries" where the camera smooth damps as it get close to a boundary edge instead of a hard stop.

    In theory, it doesn't seem that hard, something like (right edge): if "camera position + half camera width + smooth distance " will hit boundaries shape start the smooth damping. But I don't think the function to check boundaries or the "baked" camera shape to get the width are exposed?

    Is this possible or would one need to drag over the Cinemacine package and expose this manually?

    I'm using 2D confiner with a perspective camera if that would make a difference.
     
    juandavidcortesossa likes this.
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    This feature is not supported yet. But we may add it in the future.