Locomotion

Thumbstick move Enhanced Input Action


Improved tutorial:


Change VR pawn Class settings from Pawn to Character
image.png

Disable teleport and snapturn nodes
image.png

Create a new input action called IA move2D
image.png
Open it and change to axis2D vectxor 2D
Add deadzone in modifiers (lower thresold 0.2 means 20% to makes action move)
image.png

Add the move2D in IMC Default
Add oculus touch L and R thumbsticl
image.png

Back to VR Pawn, add the nodes below (split XY direction and value)
Scale value set to 25 (determine how fast characer moves)
image.png


Now it moves ok but not follow camera facing direction

To make it works, follow Improved tutorial:



Create Move around and Turn around input actions:
Move Around:, change to axis2D
image.png
Turn Around, same as Move around:
image.png

Add to IMC Default
image.png

Go to VR pawn, add a arrow component, called Forward Arrow (not child in any component)
Hidden it in game if wanted
image.png
To event graph:
For turn around:
Uncheck Rotation Yaw in details (to let rotation not based on head movement)
image.png
For move around:
image.png

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.