Follow target smoothly with Cinemachine
Posted: Thu Feb 24, 2022 10:43 am
Hi there!
I'm currently working on making a Cinemachine Virtual Camera slowly pan to a character (the listener) who is off-screen during a scene.
It's working except that the camera snaps to the character immediately. And because the character is far away from where this camera is at the start, it's a little jarring. I'd like it to move to the character smoothly and gradually in a certain number of seconds.
I've tried adding the following to the Sequence:
But they all are snapping to the character immediately. Maybe I'm missing an extra thing that needs to go in the Sequence? or maybe my CinemachineVirtualCamera component is set up wrong?
I'm currently working on making a Cinemachine Virtual Camera slowly pan to a character (the listener) who is off-screen during a scene.
It's working except that the camera snaps to the character immediately. And because the character is far away from where this camera is at the start, it's a little jarring. I'd like it to move to the character smoothly and gradually in a certain number of seconds.
I've tried adding the following to the Sequence:
Code: Select all
CinemachinePriority(Virtual Camera 3);
CinemachineTarget(Virtual Camera 3, listener, follow)
Code: Select all
CinemachinePriority(Virtual Camera 3);
CinemachineTarget(Virtual Camera 3, listener, follow, 5)
Code: Select all
CinemachinePriority(Virtual Camera 3);
CinemachineTarget(Virtual Camera 3, listener, follow)@5