Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Daydream controller position

Discussion in 'Daydream' started by battou, Oct 22, 2017.

  1. battou

    battou

    Joined:
    Jan 25, 2011
    Posts:
    197
    Hi. I use 1.100.x version of Google SDK. How can I change controller position in game? I allways at 0,0,0 no matter where I put GvrControllerPointer in sceene. I need it to position itself relative to parent position, not world position. Is it possible? Thanks!
     
  2. dsternfeld

    dsternfeld

    Official Google Employee

    Joined:
    Jan 3, 2017
    Posts:
    72
    Hi Battou!

    GvrContrllerPointer does automatically get positioned locally based on the input from the controller. GvrControllerPointer is expected to be a sibling of the camera, and the local position is set in GvrTrackedController.UpdatePose based on the position calculated in GvrArmModel.

    • Do you see this occur if you run the scene GvrDemo included in the SDK?
    • Do you see any errors in the logs?
    • Do you have the prefab GvrControllerMain in your scene? It's the main controller prefab, and responsible for managing controller state. Includes the `GvrControllerInput` component, which is the main entry point to the controller API.
    • Is the controller connected? If you're in the editor there are three ways to do this:
    Thanks,

    Dan