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

Reposition target and camera runtime - how to avoid the "popping"?

Discussion in 'Cinemachine' started by agostonr, Jan 25, 2018.

  1. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    Your parallax code should simply take the main camera's position as input, then it won't matter how the camera moves, it will always be correct if you get the math right. Just make sure that the parallax code is executed after CM positions the camera. There is an event for this: https://docs.unity3d.com/Packages/c...inemachine_CinemachineCore_CameraUpdatedEvent
     
  2. Tkodes

    Tkodes

    Joined:
    Feb 23, 2022
    Posts:
    2
    Same
     
  3. Tkodes

    Tkodes

    Joined:
    Feb 23, 2022
    Posts:
    2
    How do I get the change in position of the target?
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    positionAfterWarp-positionBeforeWarp