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.

Cinemachine: Follow and Rotate with Player?

Discussion in 'Cinemachine' started by DoubleUU, Feb 15, 2022.

  1. DoubleUU

    DoubleUU

    Joined:
    Dec 29, 2018
    Posts:
    33
    I've been following a Cinemachine tutorial that creates a basic follow cam. I was trying to use that in a 3D driving game where I want the camera to be high above and behind the car (about a 60 degree X rotation). The camera follows but it doesn't rotate when the car turns. I can't figure out what I'm doing wrong because it when I search for terms related to this, the results show people seem to have the opposite problem... stopping the camera from rotating with the player.

    When I tried some of the Aim options I couldn't find a combination that let me set the camera angle I want and also follows and rotates with the player. I suspect I need to write a script but I haven't been able to find any clues due to the above search issue.

    I feel like I'm missing something obvious. Any help is appreciated.
     
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    You can achieve this using Transposer in Body with Lock To Target Binding mode.

    You can get our sample scenes from the Package Manager. Window -> Package Manager -> Cinemachine -> Samples -> Import.
     
    simanism and superigor2014 like this.
  3. tlehloba

    tlehloba

    Joined:
    Jan 11, 2023
    Posts:
    1
    Thank you