Search Unity

How to get Roll Pitch Yaw movements from VR user?

Discussion in 'AR/VR (XR) Discussion' started by musicalsanjay2000, Dec 14, 2017.

  1. musicalsanjay2000

    musicalsanjay2000

    Joined:
    Dec 14, 2017
    Posts:
    1
    Hello there, I am new to using a VR headset and the Unity game engine. I want to be able to get a live feed of the roll pitch and yaw movements of the actual user (the headset itself). I use an Oculus Rift btw.

    How do you do this? I have seen threads on how to get roll pitch yaw movements from an object, but not the actual user itself.

    Thanks a lot.
     
  2. greggtwep16

    greggtwep16

    Joined:
    Aug 17, 2012
    Posts:
    1,546
    You can get roll/pitch/yaw from the eulerAngles on the HMD (usually the camera depending on the rig you are using).