为增强现实类型的应用检测 Android phone 倾斜、旋转等的精确变化
Detecting precise changes in Android phone tilt, rotation etc. for augmented reality type applications
是否有特定函数可以访问 Android phone 的倾斜度、方向、高度等的精确变化以用于增强现实类型的应用程序?
我正在寻找 0-360 度的倾斜值、水平方向的相同值,以及可能以米为单位的海拔值。
也许 SensorManager 会有所帮助。我用了这个手册link
对于增强现实应用程序,有一个称为 ARCore. However while using ARCore, as far as i know it takes full control of the sensors like gyroscope in current version 1.4.0 . If you are not gonna use ARCore you can look to this. You can see that there are lots of sensors but different devices have different sensors. Also another note that for elevation you can use barometer 或 gps 的库,但它们可能不那么准确。
是否有特定函数可以访问 Android phone 的倾斜度、方向、高度等的精确变化以用于增强现实类型的应用程序?
我正在寻找 0-360 度的倾斜值、水平方向的相同值,以及可能以米为单位的海拔值。
也许 SensorManager 会有所帮助。我用了这个手册link
对于增强现实应用程序,有一个称为 ARCore. However while using ARCore, as far as i know it takes full control of the sensors like gyroscope in current version 1.4.0 . If you are not gonna use ARCore you can look to this. You can see that there are lots of sensors but different devices have different sensors. Also another note that for elevation you can use barometer 或 gps 的库,但它们可能不那么准确。