mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 03:37:59 +02:00
Merge pull request #3287 from birarda/oculus-dk2
require presence of LibOVR for relative position from OculusManager
This commit is contained in:
commit
c01e8339b1
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ void OculusManager::getEulerAngles(float& yaw, float& pitch, float& roll) {
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::vec3 OculusManager::getRelativePosition() {
|
glm::vec3 OculusManager::getRelativePosition() {
|
||||||
#if defined(__APPLE__) || defined(_WIN32)
|
#if (defined(__APPLE__) || defined(_WIN32)) && HAVE_LIBOVR
|
||||||
ovrTrackingState trackingState = ovrHmd_GetTrackingState(_ovrHmd, ovr_GetTimeInSeconds());
|
ovrTrackingState trackingState = ovrHmd_GetTrackingState(_ovrHmd, ovr_GetTimeInSeconds());
|
||||||
ovrVector3f headPosition = trackingState.HeadPose.ThePose.Position;
|
ovrVector3f headPosition = trackingState.HeadPose.ThePose.Position;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue