Forum Discussion
MattPeddlesden
11 years agoHonored Guest
Rotation Tracking Problem
Hi, I'm having a problem with rotation tracking - but before I get to the current issue, let me describe an issue I had during initial integration as I have a rumble in my tummy that my solution wa...
MattPeddlesden
11 years agoHonored Guest
Hmm, reading the example again in the manual (for rotation tracking) I don't have it done the same way in turns out.
I did this:
ovrPoseStatef pose = ts.HeadPose;
x = pose.ThePose.Orientation.x * 2;
y = pose.ThePose.Orientation.y * 2;
z = pose.ThePose.Orientation.z * 2;
The manual says to do this:
Posef pose = trackingState.HeadPose.ThePose;
float yaw, float eyePitch, float eyeRoll;
pose.Orientation.GetEulerAngles<Axis_Y, Axis_X, Axis_Z>(&yaw, &eyePitch, &eyeRoll);
HOWEVER
When I try to do that - it fails because "pose.Orientiation" does not contain a member "GetEulerAngles" indeed, it only seems to consist of the x/y/z/w members.
I'm guessing this is where my rusty C++ is failing me.
Hints appreciated.
Matt.
I did this:
ovrPoseStatef pose = ts.HeadPose;
x = pose.ThePose.Orientation.x * 2;
y = pose.ThePose.Orientation.y * 2;
z = pose.ThePose.Orientation.z * 2;
The manual says to do this:
Posef pose = trackingState.HeadPose.ThePose;
float yaw, float eyePitch, float eyeRoll;
pose.Orientation.GetEulerAngles<Axis_Y, Axis_X, Axis_Z>(&yaw, &eyePitch, &eyeRoll);
HOWEVER
When I try to do that - it fails because "pose.Orientiation" does not contain a member "GetEulerAngles" indeed, it only seems to consist of the x/y/z/w members.
I'm guessing this is where my rusty C++ is failing me.
Hints appreciated.
Matt.
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
- 2 years ago
- 1 year ago
- 2 months ago