Search Unity

Use the head movement to control an object

Discussion in 'VR' started by victorreis777, Aug 25, 2018.

  1. victorreis777

    victorreis777

    Joined:
    Aug 10, 2017
    Posts:
    2
    How to control a model using only the head movement? Is there an easy way using the GoogleVR scripts? Thanks!
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    You don't need a GoogleVR script. In a VR context, head movements update the main camera's localPosition. You can just look at that, and (in, say, LateUpdate) control other stuff however you like.