Reading sensor data from Oculus, Yaw doesn't go past 90
I'm able to read data from the Rift, using the oculusplugin.dll. Pitch and Roll seem to work fine. However, I turn left and yaw goes to about -90 degrees then starts to raise. I turn right, it increases to 90 degrees, then past that point starts to decrease. Any ideas what I am missing? Right now I am just calling GetOrientation(int sensor, Quat q) every tick.
EDIT: I just noticed that the Pitch seems to "flip" when the Yaw crosses -90 or 90.
Event bool GetOrientation(int sensor, Quat q)
{
local float w, x, y, z;
if (OVR_GetSensorOrientation(0, w, x, y, z) == true)
{
q.w = w;
q.x = x;
q.y = y;
q.z = z;
CurHMDOrientation=OrientSensor(q);
return true;
}
return false;
}
EDIT: I just noticed that the Pitch seems to "flip" when the Yaw crosses -90 or 90.
