Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Trouble getting gyro data

Discussion in 'Windows' started by OakTree, Jul 30, 2013.

  1. OakTree

    OakTree

    Joined:
    Feb 15, 2013
    Posts:
    2
    My script calls Input.gyro.attitude, but it gets the same number over time: w=1, x=0, y=0, z=0.
    Input.acceleration works fine.

    I ran this on Sony Vaio Duo 13, windows 8, visual studio 2012 express, Unity Pro. Both the device manager and the online specs say that this device has gyroscope and accelerometer.

    The unity project is built for Windows Store Apps, XAML c++.

    Anyone knows why?:confused:
     
    Last edited: Jul 30, 2013
  2. OakTree

    OakTree

    Joined:
    Feb 15, 2013
    Posts:
    2
    it turns out that the gyroscope on my device is by default turned off. All I needed to do was to enable it in the start