In it there is method QueueMotionData. And obvious few other files must be changed according to add to EKeys a Magnetometer key properly. Soon I’ll try to compile Engine for the first time, so don’t expect very fast results. Although I don’t plan to give up on any obstacle. Stay tuned =)
I found UE4.15 has “Mobile Location Services” and “Optional Mobile Features Blueprint Library” as blueprint plugins, so now I can get the location (longitude and latitude) via blueprint.
However, it seems that we don’t have a blueprint for accessing the magnetometer.
Although there are “Gravity”, “Rotation Rate” and “Tilt” input blueprints, magnetometer is essential for calculating the exact device orientation.
For example, when we put a mobile device on a desk, we can know the device is put horizontally via “Gravity” vector, but we can never know the exact roll rotation of the device if we rotate the device on the desk without magnetometer.
Is there any way to get the direction vector of North Pole? Blueprint implementation is best, but if not so, I would like to know the exact code to get it on iPhone or iPad.