Search Unity

Boss/lock-on Camera

Discussion in 'Cinemachine' started by Sapien_, Feb 20, 2019.

  1. Sapien_

    Sapien_

    Joined:
    Mar 5, 2018
    Posts:
    102
    Hello. I am working on a third person game and was wondering how to set up a virtual camera that follows the character like Framing Transposer does, while at the same time looking at another object like The Legend of Zelda's Z targeting or in Super Mario 3D Land when you run around toad's house.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,710
    The virtual camera has two targets: lookAt and Follow. Use the normal Transposer (instead of the Framing Transposer). This will cause the vcam to follow the Follow target (e.g. the player), and then you can set something else for the LookAt target.
     
  3. Sapien_

    Sapien_

    Joined:
    Mar 5, 2018
    Posts:
    102
    I've tried that. The problem is the character can out run the camera.
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,710
    Why does the character outrun the camera? Is the damping too high?