• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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