Need guidance for camera zoom in Cinemachine.

Hello all,

I’m trying to figure out a solution for a specific type of camera zoom in Cinemachine. To be honest, I’m still fairly new to programming. So currently, I have no code to show, because everything that I have tried now hasn’t worked out. But let’s get to the point.

In the thread you can see exactly what type of camera I want:

In the video you’ll see an orange object lerping around showing how the camera should behave. Now I do understand how to keep both object on screen with Cinemachine. But I do not understand how you can make a object lerp like that.

So my question goes as follows: How can I make a similar behaving object like that orange dot?

Can someone help me with this? I would much greatly appreciate it and reward you with loads of karma.:wink:

Take a look at this function: Unity - Scripting API: Vector3.SmoothDamp

1 Like

Heej thanks, I’ll take a look at it, and report back when I figured it out or still have questions. Thank you for your reply. :slight_smile: