Search Unity

Lookahead feature doesn't come back.

Discussion in 'Cinemachine' started by Matik130, Dec 3, 2019.

  1. Matik130

    Matik130

    Joined:
    Mar 24, 2014
    Posts:
    1
    Hi, in 2D project I have CinemachineVirtualCamera with lookaheadTime set to non-zero value. When camera's target is moving, then everything is fine, lookahead is doing its job correctly, yellow square (in Game Window Guides) that indicates offset target is positioned before the camera's target. But when camera's target stops, then offset target doesn't fully come back and eventually isn't positioned perfectly on camera's target - in result, despite dead zones being set to 0, camera's target isn't centered by camera. Is there any way to fix this or do I need to write my own scipt, that sets lookaheadTime to zero when camera's target stops?
    Thanks in advance.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,728
    This behaviour is intentional. Snapping back was perceived as too destabilizing. You'll have to write your own script to snap it back.