Enabling 6DOF head tracking in Unity

To enable 6DOF head tracking in Unity:

  1. Go to Player Settings > Android > XR Settings > Virtual Reality SDKs > Daydream > Positional Head Tracking and select either Supported or Required.

    • Choosing Supported means that your application will work in both 3DOF mode and 6DOF mode. Choosing this option adds the following to your manifest:

        <uses-feature
         android:name="android.hardware.vr.headtracking"
         android:version="1"
         android:required="false" />
      
    • Choosing Required means that your application cannot be used without 6DOF tracking. Choosing this option adds the following to your manifest:

      <uses-feature
       android:name="android.hardware.vr.headtracking"
       android:version="1"
       android:required="true" />
      
  2. Recompile the app.

Note that WorldSense, the technology that powers 6DOF tracking on Daydream Standalone, uses a safety cylinder which limits the user's movement to a small area.

Performance implications

6DOF head tracking is more sensitive to application frame rate than 3DOF head tracking. Application framerate inconsistency is also more noticeable to the user in 6DOF. If the frame rate is too low, the application may fail the certification process.

Performance recommendation:

  • In 6DOF apps should target 75 FPS. Drops below 60 FPS will likely cause noticeable visual artifacts and user discomfort.