History

When no hovered voxel, lookAt vectors point to distant horizon

Philip Rosedale committed 13 years ago

Commit 936209f1 parent 639b6be1 file · +4 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+4−2
@@ -2162,7 +2162,8 @@ void Application::update(float deltaTime) { · 2161 unmodified lines
2162 _myAvatar.getHead().setLookAtPosition(lookAtSpot);2162 _myAvatar.getHead().setLookAtPosition(lookAtSpot);
2163 } else {2163 } else {
2164 // Just look in direction of the mouse ray2164 // Just look in direction of the mouse ray
2165 glm::vec3 myLookAtFromMouse(mouseRayOrigin + mouseRayDirection);2165 const float FAR_AWAY_STARE = TREE_SCALE;
2166 glm::vec3 myLookAtFromMouse(mouseRayOrigin + mouseRayDirection * FAR_AWAY_STARE);
2166 _myAvatar.getHead().setLookAtPosition(myLookAtFromMouse);2167 _myAvatar.getHead().setLookAtPosition(myLookAtFromMouse);
2167 }2168 }
2168 2169
@@ -2855,8 +2856,9 @@ void Application::displaySide(Camera& whichCamera) { · 686 unmodified lines
2855 _myAvatar.getHead().setLookAtPosition(_myCamera.getPosition());2856 _myAvatar.getHead().setLookAtPosition(_myCamera.getPosition());
2856 } 2857 }
2857 _myAvatar.render(_lookingInMirror->isChecked(), _renderAvatarBalls->isChecked());2858 _myAvatar.render(_lookingInMirror->isChecked(), _renderAvatarBalls->isChecked());
2859 _myAvatar.setDisplayingLookatVectors(_renderLookatOn->isChecked());
2858 2860
2859 if (_renderLookatIndicatorOn->isChecked() && _isLookingAtOtherAvatar) {2861 if (_renderLookatIndicatorOn->isChecked()) {
2860 renderLookatIndicator(_lookatOtherPosition, whichCamera);2862 renderLookatIndicator(_lookatOtherPosition, whichCamera);
2861 }2863 }
2862 }2864 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t