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!
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.
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.