Skip to main content
7 events
when toggle format what by license comment
Oct 3, 2017 at 13:30 comment added h4rd4r7c0r3 While rotating the phone to left for example, the value which returns is not always directed to that way, so the phone's gyro returns value > & < 0 and the image is moving to left and right, like shaking.
Oct 3, 2017 at 13:28 comment added DMGregory Then describe the glitches. We can't fix a problem without knowing what it is.
Oct 3, 2017 at 13:13 comment added h4rd4r7c0r3 still lot more glitchy and not so accurate in my opinion..using Gyroscope.attitude was giving better results, but with the issue.
Oct 3, 2017 at 13:06 comment added DMGregory Then make Speed much much much bigger.
Oct 3, 2017 at 13:05 comment added h4rd4r7c0r3 So after var gyro = Input.gyro.rotationRateUnbiased.x * Time.deltaTime; x -= (gyro * Mathf.Rad2Deg) * Speed; (btw Speed = 5f) , still has almost the same result, with a little bit more movement.
Oct 3, 2017 at 12:54 comment added h4rd4r7c0r3 tried that, but the image is moving with a few pixels. checked the value which returns Input.gyro.rotationRateUnbiased.x, it's something like 0,0032242 / 0.0012323 ... I've used attitude, because it's the only object which gives me rotation angles as 0 / 360, but there is an issue as I described with decresing the value after reaching 86 degree.
Oct 3, 2017 at 12:44 history answered DMGregory CC BY-SA 3.0