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 confiners bounding box keeps breaking.

Discussion in 'Cinemachine' started by shaaafeee, Jul 15, 2019.

  1. shaaafeee

    shaaafeee

    Joined:
    Jun 25, 2016
    Posts:
    9

    Attached Files:

  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Is your bounding box is bigger than the camera frame in both dimensions?
     
  3. shaaafeee

    shaaafeee

    Joined:
    Jun 25, 2016
    Posts:
    9

    Yes. It is bigger than the camera frame. And I've 3 virtual cameras for my character animations. The orthographic size is between 4 - 4.8 within the states. Those sizes are inside the bounding area.
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Does the bounding box change dynamically?
     
  5. shaaafeee

    shaaafeee

    Joined:
    Jun 25, 2016
    Posts:
    9
    I don't see any changes. It stays static.
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Can you post images of your inspectors for the vcam, for the confiner extension, and show your project hierarchy with the vcams, targets, and confining shape?
     
  7. shaaafeee

    shaaafeee

    Joined:
    Jun 25, 2016
    Posts:
    9
    Idle, Run and Shoot are Child objects of the State Driven Camera. For the Main Camera I've attached only the Cinemachine Brain, followed by State Driven and it's child objects.
     

    Attached Files:

  8. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    I see the vcams have FOV. Is your main camera perspective or ortho? Confine Edges only works if camera is ortho.
     
  9. shaaafeee

    shaaafeee

    Joined:
    Jun 25, 2016
    Posts:
    9
    Yeah, about that...The FOV keeps changing. It's either FOV or orthographic. I've double checked my vcams, all have Orthographic now. And my main camera is orthographic too.
     
  10. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Well, at this point, I don't know what to tell you. If your vcam's orthographic size is indeed larger at all times than the confining box, and the confiner box isn't changing dynamically, and you've assigned it to the confiner correctly, and the vcam has the confiner, it should just work.
    Are you doing something weird with scripts?
    Can you prove, maybe with the scene view, that the vcam frame fits inside the confining box?
     
    Last edited: Jul 16, 2019
  11. unity_esIKA_rGB50dlg

    unity_esIKA_rGB50dlg

    Joined:
    Dec 31, 2021
    Posts:
    3
    This is old, but if I can help anyone make sure the orientation of the confiner collider (bounding volume) is facing the correct direction. You may need to flip it (rotate 180 degrees).