Stop third person camera affecting character rotation

Hey all,

I’m trying to set up a third person player with a camera where:

  1. The character is controlled with the left analogue and faces the direction of his movement.
  2. The camera follows the character with a slight lag.
  3. The player can offset the camera rotation with the right analogue stick without changing the direction the character is running.

This seems to be possible when the character is standing still in the third person blueprint, but if the player is running forward and rotates the camera at the same time with the right analogue stick, it will affect the direction the character is running.

Does anyone know how I would go about setting something like this up?

I’ve tried a lot of combinations, but nothing quite seems to work.

Thanks!

I think you’ll want to either disable the pawn’s User Control Rotation checkbox,
or have the right analog stick not control the character but programmatically offset the camera rotation or the rotation of the scene component it is attached to (and make that parented in a way that it is not a child of the pawn, which means probably using AttachTo at runtime on BeginPlay, and changing it so it does not Snap To nor inherit rotation).

The thing is if your camera is a component of an actor, it will inherit the rotation of whatever it’s a child component of. The Spring Arm might have a way around this though, so you can look into that. If not, then you may want to consider making the camera part of a separate actor that always follows the character or is, like I described, attached to the character but ignoring the rotation of its attach parent, and do that at BeginPlay.

Awesome, thanks for your message. I’ll give this a shot and let you know if it works :slight_smile:

Think I’ve nailed it! These were the settings I’ve ended up with:

  • Use Controller Rotation Yaw and Use Controller Rotation Yaw (Both On).
  • Orient Character to Movement and Use Controller Desired Rotation (Off).
  • In the Camera Boom: Use Pawn Control Rotation, Inherit Pitch and Inherit Yaw (Off).

Then the Blueprint for the camera is as follows:

Camera Reset Blueprint:

Character Movement Updates

Hope this helps!

Hello, I’m having this problem at the moment and I’ve tried your blueprints, but I still can’t figure out how to make this work. About the camera reset, is it a new camera or something else? Also might you have a newer version to this solution?