How do I orient my camera in relation to the direction my character is moving - left to right?

Hello,

I want to know how I can make it so that the camera is positioned two ways depending on player input when moving left and right.

This is the perspective for the character moving right and here is a sloppy diagram for the idea I want to execute. Same perspective when moving left, but just the opposite. I want it so that the camera transition isn’t instantaneous but is an actual transition with a speed I can adjust.

I imagine that this will have to be linked with the walking blueprints, which are here.

Help would be greatly appreciated and an explanation for how to do this would be helpful, since I really want to learn this for future use. If you need any more information or screenshots, please ask.

Thanks.

Hi there,

here is a simple functioning blueprint of what you are looking for.

There are many ways to go about this, but the way I’ve decided to go is by getting the characters facing direction. From there, if that direction is forward, I interp the rotation to negative or positive (depending on which is correct)
This should provide a smooth transition from where the camera is to either target rotation.

Hope this helps!

Yes! This worked! However, as a note for anyone else, I had to make sure the camera was straight on to the character, not like how I had it originally (at an angle). Was left scratching my head at why it wasn’t working for a bit.