Smooth transition while toggling Use Pawn Control Rotation

CodeTrack_Games
Fri, 16 Apr 2021 10:13:49 +0000
Cinematics & Media

Hi there!

**TL;DR - Sorry for the long question. In short, in a First Person game, how can you take away the input from the player to play an animation with some head movement and then smoothly transition the camera back letting the player continue from there? **

The long story, I found myself into quite a situation while dealing with an animation into a First Person project of mine. I have a map in which the player starts by waking up from his desk. Everything looked simple here, I just made an animation for him and right after it played and transitioned back to its idle animation I could let the player continue the journey through the game. The problem is that the animation used has some head movement into it that wasn’t there when I played it, so I thought that I can resolve this by temporarily disabling the “Use Pawn Control Rotation” from the player camera.

Everything works great so far, the only problem is that I can’t quite find a way to smoothly transition when toggling that node in BP, the camera just snaps suddenly into its position when changing the value instead of smoothly going on.

I thought about having a second camera in the character blueprint but something just didn’t feel right about using 2 almost identical cameras for this purpose.

I’ve searched for the past 2 days for an answer, but I can’t seem to find a way to do it. Is there a more proper way to do something like this or am I missing something that can make this transition go smooth?

Thanks for your time! If there is some more information required let me know and I’ll quickly complete everything.

3 posts - 1 participant