How to smooth camera transition between 2 cameras.

Hi,

Someone can help me i try to do a camera fluid transition switch between first person view and third person view.
I have two camera component on my pawn but i don’t know how to do ? I tried the set view target with blend function but that need an actor as reference and i have camera component.

For that you can use one camera and create a function that adjusts it to different positions using FInterp To on tick.

Function > set variables (arm length, offset Z) > On Tick, Finterp to those values on the camera arm.

1 Like

Why do you use Finterp ? that want a float but my camera position is a vector ?

Didn’t undesrtand that part Function > set variables (arm length, offset Z) if you can elaborate.

Not sure how you work with variables in C++ but should be the same idea? A vector is just 3 floats. You could use VInterp instead.

Function

On Tick

Unsure why the View Target With Blend requires an actor but it does.

Option A: My solution was to create an actor holding the camera component. The resulting actor can again be added as a component when required through a ChildActorComponent. With this method I can just use the target with blend.

Option B: Use a single camera with a spring arm which has length 0 on first person and interpolates its length to third person.

Option C: Use a single camera and set its position (relative from character origin) using curves to specify X,Y,Z target location during tick.