Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Making Object rotate with Daydream Controller

Discussion in 'Daydream' started by jdsaesan, Oct 27, 2018.

  1. jdsaesan


    Oct 17, 2018
    I'm a hard noob, making a game with my son just for fun. But hoping someone can help us out.

    I need to make an object (lets say a cube) that rotates to match the orientation of the Daydream controller. It doesn't need to swing in any fashion, just rotate around its center, but to the same orientation as the controller. What would my script need to look like to call to the orientation of the controller? I tried to have it link to the orientation of the visual controller but that does not give me the desired effect at all. Hope you can help me script that out properly, cheers!