Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Getting the notion of head-neutral-forward from the OVRPlayerController

Discussion in 'AR/VR (XR) Discussion' started by Kurt-Dekker, Jun 13, 2018.

  1. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,515
    I'm using the OVRPlayerController in the Oculus devkit.

    OVRPlayerController.png

    How can I get the notion of what the VR device thinks is currently "head neutral forward?"

    The root transform above as well as the ForwardDirection transform above all seem to slave left/right along with the turning of my head.

    What I want is something that I can affix part of my body to, for instance a pair of skis: I want those skis to not turn when I gaze around and I don't see any easy way to get that rotation-around-Y heading out of the above structure.

    Do I just have to track it myself separately? If so, what if it gets out of sync with the user pressing the oculus button to recenter? Do I have to respond to that event in multiple ways?