Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question Multiple Look At objects?

Discussion in 'Cinemachine' started by spikezart, Aug 21, 2022.

  1. spikezart

    spikezart

    Joined:
    Oct 28, 2021
    Posts:
    55
    Hi all,
    is there a way for a camera on a cart following a dolly track that is looped to look at different objects as it moves along the track?
    I see target groups but they seem to only focus on trying to ensure the objects in a group are always in the camera view.
    What Im trying to do is have the camera point to different objects as it follows the track.
    Any suggestions gratefully received. Thanks
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    6,577
    You can have the camera look at an invisible game object that you move from object to object at the desired times, perhaps when the dolly cart enters trigger zones.
     
    spikezart likes this.
  3. spikezart

    spikezart

    Joined:
    Oct 28, 2021
    Posts:
    55
    Thank you. In the Vcam there is only one option for a look at object. How would you add more than one? or do you set this up as part of the trigger zone the Vcam enters?
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    6,577
    You use only the single invisible object as a LookAt. Yes, the logic to move the target is handled in the trigger zone entries. You can lerp the object from where it is to the desired spot, or you can just snap it there and let the vcam's damping smooth it out.
     
    spikezart likes this.
  5. spikezart

    spikezart

    Joined:
    Oct 28, 2021
    Posts:
    55
    Thank you.