mirror of
https://github.com/overte-org/overte.git
synced 2025-07-15 14:16:37 +02:00
Merge branch 'master' of https://github.com/worklist/hifi
This commit is contained in:
commit
f0417d187f
1 changed files with 3 additions and 9 deletions
|
@ -2008,15 +2008,9 @@ void Application::updateMyAvatarLookAtPosition(glm::vec3& lookAtSpot, glm::vec3&
|
||||||
_viewFrustum.computePickRay(0.5f, 0.5f, rayOrigin, rayDirection);
|
_viewFrustum.computePickRay(0.5f, 0.5f, rayOrigin, rayDirection);
|
||||||
lookAtSpot = rayOrigin + rayDirection * FAR_AWAY_STARE;
|
lookAtSpot = rayOrigin + rayDirection * FAR_AWAY_STARE;
|
||||||
|
|
||||||
} else if (!_lookatTargetAvatar) {
|
} else {
|
||||||
if (_isHoverVoxel) {
|
// just look in direction of the mouse ray
|
||||||
// Look at the hovered voxel
|
lookAtSpot = lookAtRayOrigin + lookAtRayDirection * FAR_AWAY_STARE;
|
||||||
lookAtSpot = getMouseVoxelWorldCoordinates(_hoverVoxel);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
// Just look in direction of the mouse ray
|
|
||||||
lookAtSpot = lookAtRayOrigin + lookAtRayDirection * FAR_AWAY_STARE;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (_faceshift.isActive()) {
|
if (_faceshift.isActive()) {
|
||||||
// deflect using Faceshift gaze data
|
// deflect using Faceshift gaze data
|
||||||
|
|
Loading…
Reference in a new issue