full locomotion vr

A combination of these three youtube videos should get you decent full locomotion in Unreal, using the built in VR template.

https://www.youtube.com/watch?v=kGCS4rJYzoM&t=21s
https://www.youtube.com/watch?v=EtEYIh9ndkc&t=236s
https://www.youtube.com/watch?v=1rQvPnKvlfk

The key parts to remember with the pawn - 

-set the auto-possess.

-disconnect the teleport stuff (unless using!) 

-use the camera forward vector if you want to move which way you're facing rather than the "real" forward.

-set your collisions on any colliders. "block all" probably best for any walls or immovable objects. Not entirely sure why the stairs or template floor has no collision setting. Might be in blueprints?

Decided to take a few screenshots of the pawn's Blueprint, just in case those videos vanish.

The rotation snapping is as follows -

And the free movement is here-

Also changing the class inheritance to Character -

 And disconnecting the teleport related scripts, but keeping the grabs-

Might update this further if I find more stuff. It could be useful to use one of the face buttons to teleport instead of the sticks. You could just make a new Input Action Event in the Project Settings and replace the appropriate bits. I'm also not sure if the height detection is slightly broken on changing to inheriting from the Character class, as I did notice a bit of a height gain once I used it.

Comments

Popular posts from this blog

Android Vulkan/ES3.1 preview doesn't match Shader Model 5/DX11 view