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.
asked Sep 12 '18 at 01:30 PM in Blueprint Scripting
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 Rotator -> Get 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.
Follow this question
Once you sign in you will be able to subscribe for any updates here