How to establish vertical movement in walk movement mode in zero grav

Hello @[PB]Aphexx,

I think I have a solution. First off I want to note that this solution was partially inspired by this [post][1]. The steps I took to make this behavior possible are listed below.

Step One:
Set the Movement Mode of you CharacterMovement component to “Flying”. There are two ways to do this. You can set the Default Land Movement Mode to “Flying” under the General Settings category in the properties panel of your CharacterMovement component as seen below.

51110-forwardvec+1.png

Or you can set the Movement Mode at any time using the Set Movement Mode node as seen below.

51111-forwardvec+2.png

Step Two
You will need to setup input mappings to use your fly forward behavior. I created a Axis mapping and used “Left Shift” to fly forward and “Left Control” to fly backwards as seen in the picture below.

Step Three
You will now want to use your new input mapping to tell the player where to go. I found two really good ways to do this. You can use the “Add Movement Input” node as seen in the picture below.

Or you can use the “Add Impulse” node on the CharacterMovement component as seen below. As a side note, I am pretty sure you can use the “Add Force” node in a similar manner, I just used the “Add Impulse” node because I found it easier to work with.

Important Note: You must use the forward vector of the camera to make this work. If you use the forward vector of the actor, then the character won’t always move to where you are looking.

I hope this answer helps,

Farshooter