Forum Discussion
CyberVillain
10 years agoHonored Guest
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
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
Problem is the new ovrPosef type does not have the Rotation property
1 Reply
- CyberVillainHonored GuestHmm, after including the Extras folder i can use include OVR_Math.h and cast ovrPose to a Posef and use above code.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 4 years ago
- 10 months ago