Trying to figure out how to get the rotation the device is facing in the real world, similar to that of a north/east/south/west.
The goal is to have a “Tracking” app, almost like a “hide&seek” using latitude/longitude. When the device is facing the latitude/longitude the texture will be green, then when it’s not it will fade to shades of red depending on the rotation.
Wanting to have it so I can place various places in the world using longitude/latitude and if the user faces it with their device a certain effect can happen.
Android sensor is called: geomagnetic field sensor