Hi everyone! First time here. I’m a newbie in UE 5 and I’m trying to do a camera setup for a top-down game, But I can’t figure out how to?
Currently my character is able to move with WASD in fixed camera angle(and face the direction where characters moving.)
But I also want to set up a hold “mouse right button” to rotate camera. And when rotating the camera, character moves in the direction of the camera forward, not world forward. How do I achieve that?
So now the problem is:
When I rotate the camera, the character is still moving in world direction, and not the direction my camera is facing. I want my character to move in the same direction of the rotated camera while holding movement input + camera rotation input.
And you’ll also wanna enable Orient Rotation to Movement and disable Use Controller Rotation Yaw for the character.
If you haven’t done those already:
Select the character movement component from the Components window on the top left, navigate to the Details window on the right side while having it selected, and enable the Orient Rotation to Movement property.
Select Self from the Components window, then while having it selected, navigate to the Details window, and under the Pawn section, disable the Use Controller Rotation Yaw property like this:
And don’t forget to enable the Use Controller Rotation Yaw property for the Spring Arm! You do it the same way, but this time select the Spring Arm component from the Components window.