Search Unity

Telling Cinemachine to never look at an object

Discussion in 'Cinemachine' started by dragon_slumber, Mar 8, 2019.

  1. dragon_slumber

    dragon_slumber

    Joined:
    Jun 11, 2017
    Posts:
    30
    Hey everyone,

    Is there a way to tell Cinemachine to not look at something? For instance, if my scene has an exit which has no texture, I'd like the camera to be able to move and rotate, but avoid looking in that direction, kind of how cameras don't pan beyond a certain point in 2d. Alternatively, I could have "always look at X", which would encompass my scene and avoid not looking away from it.

    Thanks,
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,719
    Currently there is no out-of-the-box solution for avoiding looking at something, but it's an interesting idea. You might be able to code up a custom CinemachineExtension to implement this. If you do go that route, don't be shy about asking questions here, and/or posting the code when you're done.