This step-by-step tutorial shows how to implement thumbstick (aka gamepad or joystick) locomotion as an alternative to teleportation in the standard VR template.
Two variations are shown:
1. Direction of locomotion following the HMD orientation
2. Direction of locomotion independent from the HMD orientation
In addition the VR Pawn is modified to add a collision capsule so it cannot go through other objects and walls.
*NOTE*: To keep it simple, this implementation is for a seated/in-place experience. Rotations will be inaccurate if you use it for a room-scale experience and start moving around IRL. This can be fixed implementing a roto-translation of the VR origin so the camera parented to it pivots around its vertical axis as expected. I may cover this in a future tutorial if anyone…Découvrir l’article original