Open voidlord opened 2 years ago
Research has concluded with two types of formulas to get the movement:
.MultiplyMV()
causing fatal errors)Currently paused, waiting for https://github.com/Just-Pong/just-pong-android/issues/5 to solve
https://github.com/Just-Pong/just-pong-android/issues/5 is partially concluded and should not hold back this ticket anymore.
https://github.com/Just-Pong/just-pong-android/issues/1#issuecomment-1296201778 Further testing using a virtual device proved, that the first formula should be accurate enough.
https://stackoverflow.com/questions/14574879/how-to-detect-movement-of-an-android-device
This algorithm only detects movements, and doesn't convert data to Earth coordinates.
Implement functions required to measure vertical movement of the device.
Implementation should use values provided by SensorAPI (https://developer.android.com/guide/topics/sensors/sensors_motion), and should return movement relative to Earth, instead of local.
Transformation formula needs to be researched.