Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How To Disable Camera Lag Behind Player

Discussion in 'Cinemachine' started by Mattheon, Jul 21, 2020.

  1. Mattheon

    Mattheon

    Joined:
    Jul 12, 2020
    Posts:
    2
    Hello everyone,

    I have a free look 3rd person camera and I am wondering how to go about disabling the smoothing between the current camera distance from the player and the target distance? Currently I have my movement speed set very high, which is something I intend to keep. When my player runs towards the camera, the camera does not maintain it's distance and the player ends up right in the cameras face. Visa verse for the other direction. When the player runs away from the camera, the camera lags behind and creates a bigger gap between it and the player. How can I go about maintaining the distance between the camera and player regardless of speed?
     
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    Hi, could you attach screenshots of your freelook?
    You may need to adjust damping, soft- and dead-zone parameters on your vcam.

    Also have a look at the third person camera examples AimingRig, 3rdPersonWithAimMode.
     
    Gregoryl likes this.