Search Unity

Question Unavoidable camera jitter in corner placements

Discussion in 'Cinemachine' started by Blepius, Sep 15, 2022.

  1. Blepius

    Blepius

    Joined:
    Mar 9, 2021
    Posts:
    68
    With a CinemachineCollider on a CinemachineFreeLook set to Pull Camera Forward, there seems to be unavoidable jitter when the camera enters a corner.

    I've uploaded three videos, all demonstrate the same behavior, except with different damping values.

    Link: https://imgur.com/a/DjtK8f0

    - Video 1
    With no damping

    - Video 2
    - With damping, scene/game comparison.

    - Video 3
    Note: Damping and a smaller camera radius help hide the issue, but large damping values in turn allow the camera to easily cross through walls (box colliders).

    Are there any Unity demo projects available that demonstrate indoor Cinemachine use?

    This kind of reminds me of how skin width works with character controllers. Since the Cinemachine Collider lacks skin width, maybe this is behavior as intended?
     
  2. Blepius

    Blepius

    Joined:
    Mar 9, 2021
    Posts:
    68
    I think this issue here was due to the aim module having properties set while following a rigidbody character. The solution here was for me to make sure all prediction methods are turned off for rigid bodies.