Question by
craftercis · Aug 28, 2018 at 02:01 PM ·
c#mobilegyroscope360-degreesshaking
Shaking screen using the gyroscope attitude
Hey,
I have an problem when I use Gyro attitude. When I move my telephone and then hold it still the screen is shaking for 3/4 seconds and then stop it.
How can I fix this??
Code:
if (Input.gyro.enabled)
{
transform.rotation = Quaternion.Euler(90.0f, 0.0f, 0.0f) * new Quaternion(Input.gyro.attitude.x, Input.gyro.attitude.y, -Input.gyro.attitude.z, -Input.gyro.attitude.w);
}
Video: Video of the problem The big shake is me and the little is my problem
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612173641im_/https://answers.unity.com/themes/thub/images/avi.jpg)