- Home /
Calibration Script
So I have a script to rotate the camera based upon deviations in gyroscopic values. However, for the sake of convenience, I also want to write a script recallibrate(?) the script such that when a button is pressed, a certain condition is satisfied, the iphone's current rotation is essentially the new (0,0,0). Unfortunately I can't literally just go (transform.rotation = Quaternion.Euler(0,0,0)). The best idea i have right now is to create an empty GameObject of (0,0,0) rotation and have the camera rotate relative to that object. Is there any way that's more efficient or just plain simpler?
Your answer
![](https://koobas.hobune.stream/wayback/20220612084709im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I prevent camera shaking when focused on gameobject? 0 Answers
How to get the value of the an angle of the Gyroscope? 1 Answer
How can I make the camera rotate with gyroscope appropriately? 1 Answer
How to transform local space to world GYRO space on ios? 0 Answers
Unity 3.4 Gyroscope support not there? 2 Answers