Make character's "forward" line up with camera's "forward"

I want to make a 6 degrees of freedom character, and when I look up and hit w, I want to go towards the direction I am facing, how do I do that?

Hi,

Go to your character BP or player controller BP (where your movement inputs are stored. In my example they are inside character BP) and follow my graph;

You can do further settings for speed inside flying tab of character movement component. You can also add space bar as an event to move your character vertically if you want. It’s quite simple to do that.

Regards,

@navid100 where do I get the “Follow Camera” node? I’ve tried just using the camera object, and an arrow object attached to the camera, but neither work

@navid100 Sorry, I was using “get actor forward vector” and not “get forward vector”, it works now, thanks!

It’s under the components tab inside your character BP (if you are inside a provided UE4 template). Just drag it and drop it inside your graph

200944-tab.png

If you don’t have a camera component, then add one.