Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Framing Transposer - Camera Distance Only

Discussion in 'Cinemachine' started by jimmyjamesbond, Apr 2, 2019.

  1. jimmyjamesbond

    jimmyjamesbond

    Joined:
    Mar 17, 2015
    Posts:
    14
    Is there any way to use the Framing Transposer just for dolly out to frame the group without changing the position to fit all objects? I want the main character to be at the center of screen at all times but the dolly out to accommodate enemies other objects. I've tried adding enemies to the Target Group as a very small weight and large radius but that still contributes to the position of the camera a bit which isn't ideal. Any ideas?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,725
    Put the main character as the sole member of the target group. Add a custom script to dynamically adjust its radius in the group to be equal to the distance to the farthest enemy you want to have in frame.
     
    jimmyjamesbond likes this.
  3. jimmyjamesbond

    jimmyjamesbond

    Joined:
    Mar 17, 2015
    Posts:
    14
    Eureka! Can do. This would be a great mode to add to Cinema Machine. Distance Framing Only or something.