How to have camera follow in facing direction of character?

Im currently using cinemachine and am having trouble working out what exactly to do.

I have a camera follow that is using the “Lookahead” function, think of the game as a twin stick shooter, left joystick controls the players movement and when just using that the camera will follow in the correct direction.


This image the player is moving to the top right hand corner.

However when the right joystick is pressed the character will rotate towards that direction. Yet the Lookahead function still follows the characters direction and not the characters forward facing direction.


This image the player is moving to the bottom right corner and looking to the top right corner.
I want the lookahead/ camera follow to be looking in the forward direction of the player. Ive tried making a separate follow object but when the player rotates its very jarring.
Anyway around this?

For the jarring nature, you can reduce the easing / framing settings to cut down on the immediate motion.

But otherwise, yeah this is a pretty common way of doing it – having a parented transform offset by the target’s local forward. Another option would be to set the follow target in cinemachine, but have the actual motion of that transform eased over time with your own code.