[Android/iOS] Compass heading #3308
Replies: 3 comments 2 replies
-
Have just looked at the code for this on Android, it should provide the yaw information based on the device rotation information: TYPE_ROTATION_VECTOR Which looks like it should be the actual angle between the phone and magnetic north, although I would assume it's dependent upon the availability of hardware sensors. I'll ask someone to look at this and see what the device is returning vs what the AS3 API is saying.. |
Beta Was this translation helpful? Give feedback.
-
Or you can use this one: https://airnativeextensions.com/extension/com.distriqt.Compass |
Beta Was this translation helpful? Give feedback.
-
@ajwfrost Do you have any news on this issue? |
Beta Was this translation helpful? Give feedback.
-
Is there a way to calculate compass heading (direction/azimuth) from available AIR classes?
I tried to use
DeviceRotationEvent.yaw
, but it's always set to 0 when app starts so I can't define North direction.Beta Was this translation helpful? Give feedback.
All reactions