Oculus Rift get orientation

Hi there,
i am working on a project where i have to control two servos. The position of these two servos depends on the orientation of the head. But i have no idea where i can get this information. I’ve tried the following:

        OVRPose leftEye = OVRManager.display.GetEyePose(OVREye.Left);
        OVRPose rightEye = OVRManager.display.GetEyePose(OVREye.Right);
        print (rightEye.orientation.eulerAngles.x);

But i get only zeros as x, y and z orientation.
I am using the Oculus Rift Unity Integration v 0.4.4. The Oculus Demo works on my pc.

Thanks a lot for help

David

I just grab the rotation directly from the center camera in the Oculus camera prefab, found it the simplest way : )

Thanks for your answer :). This is a good idea. But it don’t work. The rotation in in x and z direction are permanently 0. The y Axis has another value, but this value don’t move. The only value that move is the position of the y axis. Any idea why this happen? What I’ve done:
Create a project, dropped the OvrController into my scene and than I hit start. Is there something I have to enable?

Thanks

David

No, should just work. I have no issues at all with it…

did you figure out how to obtain the orientation data?