Why does Add Movement Input not work for VRPawn

Greetings everyone!
This is my BP, it is changed from VRPawn in VRTemplate


I add an input action call IA_MoveASDW, it contains an Axis 2D. And in IMC_Default, I set Vive(L) Trackpad 2D-Axis to this IA.
Then, add the EnhanceInputAction of IA_MoveASDW like the upper image.
After running VR Preview, the printed strings are:

It shows that IA input get correct value, but AddMovementInput can not change the location of player‘s VRPawn.
I try another way, using AddWorldOffset directly, and it can really change my location (although it still need some change to set set forward by HMD). But it seems not standard, so I don’t want to use it.
So why, and how can I fix it?
Thanks a lot!

1 Like

Did you add a movement component? The VR pawn from the template does not have one. It is character blueprint specific so I guess you can’t add one to the default pawn of the template. A floating pawn movement component might make it work.

1 Like

By default, a pawn won’t do anything with ‘add movement input’. You need to add the movement code yourself. I’m assuming this is also so with VR.

A blueprint that inherits from ‘character’ will be able to make use of ‘add movement input’.

Thanks a lot, it works!
More over, I found that after the VRPawn can move, it will move pass through walls, even if I added a capsule to the VRPawn, and a wall with collision witch will block all, the pawn will still move pass walls.


How can I fix it?