Search Unity

GvrRecenterOnlyController does not work as expected

Discussion in 'Daydream' started by reedny, Jun 7, 2017.

  1. reedny

    reedny

    Joined:
    Mar 4, 2017
    Posts:
    57
    Hi, I'm running a use case where I want the headset to stay at the same rotation, but the controller to recenter to the current headset direction.

    The recenter (home button down) does not always work, but often works if done a 2nd time.

    Moto Z Force Droid, Android 7.0
    Unity 5.6.1f1
    GVR Unity SDK 1.50

    To replicate:
    1. Create new project.
    2. Set as Android platform, Daydream as VR, Android 7.0.
    3. Add GVR 1.5 asset
    4. Open GVRDemo scene.
    5. Add GvrRecenterOnlyController script to Player node.
    6. Set Main Camera and GvrControllerPointer parms for the script.
    7. Build and send to phone.
    8. Run app on phone.
    9. When app starts turn around to face the cube and recenter.
    Expected: headset says at same rotation and pointer centers.
    Observed: headset says at same rotation and pointer centers.
    10. Then turn 90 degrees (you, headset, and controller) to the right (you, headset, controller pointing to 3 o'clock) and recenter.
    Expected: headset says at same rotation and pointer centers.
    Observed: headset says at same rotation but pointer moves to 6 o'clock.
    11. Recenter again and it works as expected.

    Thanks,

    @reedny
     
    cLick1338 likes this.