FOVE SUPPORT CENTER

How to get head tracking rotation in real time

Comments

1 comment

  • Official comment
    Avatar
    Jeff

    Hi Stephanie,

    As far as the math goes, you can simply rely on Unity's Quaternion class.

    Debug.Log(FoveManager.GetHmdRotation().value.eulerAngles.z);

    Will print out the roll of the headset in degrees.

    The data is updated each time the underlying fetchPoseData function is called, which typically happens automatically via the frame update loop. However, if you're not seeing updates, try manually calling it every frame and see if that helps.

    FoveManager.Headset.FetchPoseData();

     

    Comment actions Permalink

Please sign in to leave a comment.