Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
CyberVillain's avatar
CyberVillain
Honored Guest
10 years ago

GetEulerAngles and SDK 1.3

Hi,
I'm porting from 0.8 to 1.3, cant find much info about Eular angles and SDK 1.3 My code looks like this 

HmdFrameTiming = ovr_GetPredictedDisplayTime(HMD, 0);
ovrTrackingState ts = ovr_GetTrackingState(HMD, ovr_GetTimeInSeconds(), HmdFrameTiming);
ovrPosef pose = ts.HeadPose.ThePose;
pose.Rotation.GetEulerAngles<Axis_Y, Axis_X, Axis_Z>(&output->yaw, &output->pitch, &output->roll);

Problem is the new ovrPosef type does not have the Rotation property

1 Reply

  • Hmm, after including the Extras folder i can use include OVR_Math.h and cast ovrPose to a Posef and use above code.