>>282771738
I dunno much about UE4. For unity, they do have this FPS sample project with full source available https://unity.com/fps-sample , that in theory can be adapted for VR. Would be a good base to start on at least.