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.
  2. Dismiss Notice

Question How to create a Transposer with a custom BindingMode: LockToTargetWithWorldDown

Discussion in 'Cinemachine' started by downstroypvp, Jul 6, 2023.

  1. downstroypvp

    downstroypvp

    Joined:
    May 30, 2016
    Posts:
    35
    Hello!

    Just as the title says, I would like to have a transposer that locks on a target but with the worldUp inverted (going down the Y axis.)

    Is it possible to do that using default cinemachine implementation or do I have to write a custom extension for it?

    Thanks!
     
  2. Yuchen_Chang

    Yuchen_Chang

    Joined:
    Apr 24, 2020
    Posts:
    105
    How about setting the Lens > Dutch Value to 180? Seems like have the same effect.
     
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    Some context would be helpful. If we have an inverted gravity situation, you can set the World Up Override in the CM brain.
     
  4. downstroypvp

    downstroypvp

    Joined:
    May 30, 2016
    Posts:
    35
    Hello and thanks for the answer.

    The context is: I need to be able to follow the player in whichever direction it moves, and we have some zones where the gravity is different from the normal gravity.

    I finally settled to use a transposer with LockToTarget, because switching form world up to world down wasn't smooth nor understandable to the user.

    Thanks for your time!
     
    Gregoryl likes this.