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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Samsung Galaxy S3 Neo Duos gyroscope not working (not enabled)

Discussion in 'Scripting' started by glennseso, May 25, 2015.

  1. glennseso

    glennseso

    Joined:
    Nov 11, 2011
    Posts:
    34
    Hi, I have a Samsung Galaxy S3 Neo Duos that i'm pretty sure have Gyroscope.

    I test it with an app called Sensor Kinematics and gyroscope is working well there.

    I'm also able to run apps made with Google Card Board SDK and even build my own app working with gyro using their plugin, but when I try to code my scripts using Input.gyro I got false from Input.gyro.enabled.

    With the following code I got this running in my android device.
    Code (CSharp):
    1. voidUpdate ()
    2. {
    3.     attitude.text = "Attitude " + Input.gyro.attitude.ToString ();
    4.    enabled.text = "Enabled " + Input.gyro.enabled.ToString ();
    5.    gravity.text = "Gravity " + Input.gyro.gravity.ToString ();
    6.    rotationRate.text = "Rotation Rate " + Input.gyro.rotationRate.ToString ();
    7.    rotationRateUnbiased.text = "Rotation Rate Unbiased " + Input.gyro.rotationRateUnbiased.ToString ();
    8.    updateInterval.text = "Update Interval " + Input.gyro.updateInterval.ToString ();
    9.    userAcceleration.text = "User Acceleration " + Input.gyro.userAcceleration.ToString ();
    10. }


    This happens in Galaxy S3 too.

    Any clue?
     
  2. glennseso

    glennseso

    Joined:
    Nov 11, 2011
    Posts:
    34