Player Camera is lower after view target blend between cameras

Hey!
So, I have a bed in my game, when player uses that bed, i make a view target blend to camera outside the house, and after stamina is full, player “wakes up” and I make view target blend back to player camera - the problem is that after going back from outside house camera to player camera, a player camera is placed noticably lower than default.

You could see on this video that player camera before sleep is placed high above the stove, after sleep is placed noticably lower.

Blueprint where I change View Target

Could you show the component hierarchy of the player pawn - do you have more than 1 camera there?

Thanks for reply.

Here is my Player Character component hierarchy:

I only use two cameras in the whole project: The player’s camera and the camera outside when the player is sleeping.

1 Like

Looks fine. OK, I think I see it:

Instead of the Player Controller, target your player with Get Player Pawn


Also, when comparing floats, avoid ==, use >= instead - much safer. Or one day you may not wake up… :innocent:

Yep, it worked! Thank you :slight_smile:
I use == because stamina is clamped to 100.0, so stamina is never more than 100.0 - if that’s what you mean. Unless with Clamp we also can’t be sure that the stamina value is not, for example, 100.000023? I’ve never have problem with that :confused:

For as long as it’s 100, it’s fine. 100.5 could get tricky.