- Home /
Question by
shrapnel92 · Jun 17, 2014 at 03:35 PM ·
androidgyroscope
Is it possible to recieve live updates from gyro.attitude on Android?
Hey all, trying to set the rotation of a transform component through the gyro.attitude code, I thought that this would do it:
// Use this for initialization
void Start ()
{
Input.gyro.updateInterval = 0.01F;
}
// Update is called once per frame
void Update ()
{
transform.rotation = Input.gyro.attitude;
}
}
But it doesn't, nothing happens. Is it possible to do this? Am I just missing something?
I'm using a Samsung Galaxy Tab 2 10.1
Thanks!
Comment
What do SystemInfo.supportsGyroscope
and Input.gyro.enabled
report?
Your answer
Follow this Question
Related Questions
How do I access CoreMotion and the Android equivalent? 0 Answers
Accessing sensors of iOS/Android devices 1 Answer
Input.Gyro + samsung s10+ = fliped orientation 0 Answers
Gyroscope Controls for Android? 2 Answers
Android gyroscope 3 Answers