Search Unity

How can i move my soft zone depending where my object is facing?

Discussion in 'Cinemachine' started by brunoenvia, Apr 28, 2022.

  1. brunoenvia

    brunoenvia

    Joined:
    Aug 5, 2019
    Posts:
    94
    i currently have a car that drives around a track, i added a soft zone to the bottom
    so the player has time to see the track on his front. but when the track goes the opposite way
    the soft zone is still at the bottom. how could i change it when the car goes the opposite way?

     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    You could make an invisible object child of the car, placed some meters in front of it. Look at that instead of the car, and put it in the center of the screen. You could also scale the distance based on speed or other factors.