Skip to main content
Up and Coming
April 4, 2016

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

    Up and Coming
    April 4, 2016
    Hmm, after including the Extras folder i can use include OVR_Math.h and cast ovrPose to a Posef and use above code.