Android Utilizing the phone's Yaw (Y rotation)

H

Hayoon Jang

Guest
Hello, I'm doing a small demo regarding AR/VR, And I used the device_get_tilt_x/y/z() functions to get the phone's orientation. But turns out it can't be used for Yaw, or the Y rotation you point your phone at because GM:S uses the phone's accelerometer, not the Gyroscope sensor.
+ the tilt shakes a LOT

I wondered if there was a way to utilize the phone's Gyro sensor?
 

Attachments

Last edited by a moderator:
P

Pablo Avila

Guest
Hello, I'm doing a small demo regarding AR/VR, And I used the device_get_tilt_x/y/z() functions to get the phone's orientation. But turns out it can't be used for Yaw, or the Y rotation you point your phone at because GM:S uses the phone's accelerometer, not the Gyroscope sensor.
+ the tilt shakes a LOT

I wondered if there was a way to utilize the phone's Gyro sensor?
Did you, by any chance, figure it out? I am facing the same problem.
 
Top