Locking camera rotation

I have a very simple setup, with a UCameraComponent attached to ACharacter#GetCapsuleComponent().This is a top-down game.

The camera is following the player as expected, but whenever the player turns, the camera also rotates. No matter what I try, it just will not stay still. No matter how the player rotates, the camera should stay with the exact same rotation, simply following the player, which is already does with its relative position set.

I don’t want to use a USpringArmComponent unless there’s no other possible way. How can I achieve this?

1 Like

theres a couple ways, in event begin play you could get the world rotation of the camera and then in event tick set world rotation of the camera to that original rotation,

Im not sure if the camera is in your controller or the character but you may be able to uncheck “Use Control Rotation” on the camera and that may fix it.

This is the hierarchy: Imgur: The magic of the Internet

Use Pawn Control Rotation is already false

Setting the rotation in the Tick event is doing nothing