Implementing compass in Unity AR Project (Vuforia)

Hello,

I need some assistance regarding the AR Project, I am using Vuforia SDK in the project.

So, I want to implement a feature for Compass, that it calculate the angle to which I rotate my camera or mobile
If a user sees west, icons of the west appear on the screen. If a user sees east, icons of the east appear on the screen.

If anyone has integrated this feature, Please let me know !

Any help will be appreciated !

Regards !

I am also not sure if iPad without data antennas or iPod Touch have a compass sensor built in, i could be wrong though.

Hello,

I am using Android for my App, and I tried the above code, It isn’t work I believe.

Is it working at your end ?

Yes, i have developed AR solutions that uses the compass to determine world heading.

Remember that you have to call Input.location.Start() in order for trueHeading to work.

this doesn’t seem to work, just points at the direction your phone is facing when starting, debug log on Input.compass.trueHeading is always 0