Android设备旋转矩阵到Unity四元数

时间:2018-07-06 10:33:47

标签: android unity3d android-sensors

我正在尝试从Unity 3D中的Android插件中使用本地Android API调用SensorManager.GetRotationMatrix()。 API调用的输出被写入两个com.google.android.material.textfield.TextInputEditText矩阵R&I中。

方法签名看起来像这样。

float[]

This SO thread包含具有各种转换的pdf链接,但此链接已损坏。

如何将输出矩阵转换为Unity public static boolean getRotationMatrix (float[] R, float[] I, float[] gravity, float[] geomagnetic)

0 个答案:

没有答案