I would like to get a CMAttitude link based on ground level, for example to draw a horizon line.
In fact, I can turn my eyes around by getting a link at any time and using multiplyByInverseOfAttitude to get the phone rotated from the previous ratio. It's fine.
But I can’t find how to get it to start at the beginning. I am mainly in portrait mode, IOS5 and using CMAttitudeReferenceFrameXTrueNorthZVertical (since I also use CoreLocation).
I searched for samples of bubbles or samples of dummies (using an accelerator), but did not find a simple answer or sample for my problem with the device’s motion settings. I probably missed something.
Thank.
source
share