mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 06:13:09 +02:00
require presence of LibOVR for relative position from OculusManager
This commit is contained in:
parent
b055e07d72
commit
e3bab8bdc8
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() {
|
||||
#if defined(__APPLE__) || defined(_WIN32)
|
||||
#if (defined(__APPLE__) || defined(_WIN32)) && HAVE_LIBOVR
|
||||
ovrTrackingState trackingState = ovrHmd_GetTrackingState(_ovrHmd, ovr_GetTimeInSeconds());
|
||||
ovrVector3f headPosition = trackingState.HeadPose.ThePose.Position;
|
||||
|
||||
|
|
Loading…
Reference in a new issue