How to Move a UFPS Player in the Direction the VR Headset is Looking

If you’re using Opsive’s UFPS (Ultimate FPS) in Unity with a VR headset such as an Oculus Rift, you can add this script to the UFPS player to automatically rotate the player in the direction that the headset it looking.

 

VRLookToMoveUFPS.cs: