Looking to get access to the device’s compass’s direction for camera control. I know there is an “Enhancement Pack” available for iPhone with compass functions, but not sure if its the same for Android AND I don’t really have 100$ to throw down. Any ideas?![]()
Checkout the Android documentation, write the corresponding code reqiured for it in Java and write the JNI bridge to use it from unity (thats the same bliprob and others had to do on iOS too, just that they didn’t need to use bridging as iOS is basing on a C compatible language, not Java)
Awesome, thanks for the quick reply. I did check into the Android Docs and found a “compass.java”, is that what i’m looking for? http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/Compass.html
Please forgive me, i can do a lil damage with .js but hopefully this functions not out of reach with the complexity of the development. Have you ever seen any good examples or tutorials for this?
Thanks again.