mirror of
https://github.com/overte-org/overte.git
synced 2025-07-15 23:36:39 +02:00
fixed compile error with LIBOVR
This commit is contained in:
parent
db0fbcab97
commit
014346094b
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(HAVE_LIBOVR) && (defined(__APPLE__) || defined(_WIN32))
|
||||||
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