- Home /
Rotate Gameobject against Gyroscope in Z
I would like to rotate a Gameobject against the z-axis of the Gyroscope on a Smartphone. Imagine holding your smartphone in front of you and rotating it like a steering wheel. In such case, I would like the gameObject to be rotated vice versa, so that it would look like the object always keeps the same rotation, regardless of how the phone is rotated. For instance an arrow, which will always point towards your feet.
How would I do something like that? I have already played around with the source files of this tutorial: http://blog.heyworks.com/how-to-write-gyroscope-controller-with-unity3d/ I would like to get rid of the X and Y Gyroscope rotations.
Thanks.
Your answer
Follow this Question
Related Questions
3D camera relatively using gyro a la N.O.V.A. 2 0 Answers
Input.gyro.attitude not working on newer Android devices 3 Answers
3rd player orientation using gyro with offset 0 Answers
Android gyro 1 Answer
Change Gyroscope forward 1 Answer