How to make player move in the direction of where the camera is facing

Hi Guys!
I’m new in UE 4
Soooo, I trying to make game like Top Down, camera view can be Zoom in / Out and can be Rotated.
My problem is that I can not make player movement in direction where camera is facing.
like in Editor mode.

Thanks !

As you have not provided any blueprints I will assume that you use Add Controller Yaw Input node in your Input Axis look Right event.

In this case you can use Get Controller Rotation → take only the Yaw value → Mare RotatorGet Forward Vector. I will call this Forward Vector.

From this point on you can move your Pawn in the Forward Vector direction multiplied by your desired speed and the Axis Value.

1 Like