- Home /
Question by
Next Beat Games · Jul 07, 2015 at 10:30 PM ·
detectionaccelerometergyroscopedetectgyro
detect 360 spin on mobile device
Hello. whats the best way to detect if a mobile device has been spun around 360 degrees within say 1 second? I would like this detection support iOS and android
Comment
Answer by Paulius-Liekis · Jul 22, 2015 at 11:38 AM
Use Input.compass or Input.gyro for that.
Thabks for your reply. I was looking for a code solution rather than high level. I'm short on time. Also, I somewhat agree to use gyro if there are some convenience functions that could be called but I'm assu$$anonymous$$g accelerometer is better to check - less expensive and more robust for this problem. Also, compass won't work for this.