Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Third Person Shooter - One FL cam to Another

Discussion in 'Cinemachine' started by chainsawpenguin, Jun 29, 2019.

  1. chainsawpenguin

    chainsawpenguin

    Joined:
    Sep 28, 2014
    Posts:
    107
    Here's my setup:

    I have a FreeLook Camera (my "MoveCamera") t that follows my character's movement, lets me look around, etc.

    I have another FreeLook Camera (my "AimCamera") that is zoomed into when the player presses the "Aim" input. So far, so good!

    However, the player's look rotation doesn't align with the AimCamera. It's entirely possible to hold down Aim and then rotate the camera back until I'm looking at myself!

    How do I make the player's position and rotation *follow* the center of AimCamera (for a third person shooter), while allowing the MoveCamera to follow the player's movement and allowing free look?

    I feel like this SHOULD be easy!

    Any guidance or suggestions are welcome and appreciated!!
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    4,227
    The Aim Camera could be an ordinary vcam (not a FreeLook) with a transposer that has LockToTarget (or LockToTargetWithWorldUp) binding. In this mode, your player inputs should drive the character directly. The camera will follow.
     
unityunity