Heading of tvos remote

Is it possible to get the heading of the remote?


I'm able to read out the vertical heading using the gravity properties, but I'm unable to find out the heading of the remote.

I want to create a cursor for a shooting game, which is moving from left to right, up and down.

Yes, it is possible. But you need to think a little different. Think of the remote as a grid. Then assume a normal from the top of the grid (along y-axis). This is the remote's up. Then assume another grid which is aligned to the earth. Assume a normal from the top of that grid. This is the earth's up (SCNVector3Make(0, 1, 0). The difference between the two normals is the remote's up heading. Do the same thing along the x-axis and you have the left and right heading.

The accelerometer can give you absolute up/down orientation, but I don't think there is a mechanism for absolute orientation left/right. The Wii uses an ir beacon and a camera in the remote to do this, and the Siri remote does not have this hardware. You could tilt left right, but I think that control scheme would seem a little strange.

Heading of tvos remote
 
 
Q