I would like to get the head rotation of the FOVE in real time. We are specifically interested in head roll, and have equations that convert quaternions into Fick coordinates for theta, phi, and psi. This works successfully with the exported data in the fove_recorded_results, but does not seem to work properly in real time (i.e., the value is not correct in real time when moving the FOVE headset). To get the headset roll rotation in real time, this is the code I run in the Update method.
var rotation = FoveManager.GetHmdRotation();
var thetaRad = Mathf.Atan2(2 * (rotation.value* rotation.value - rotation.value* rotation.value), (1.0f - 2.0f * (rotation.value * rotation.value + rotation.value * rotation.value)));
var thetaDeg = thetaRad * Mathf.Rad2Deg; // in degrees
Any advice regarding headset rotation in real time is much appreciated! Thanks so much in advance.
Please sign in to leave a comment.