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
21622162 _myAvatar.getHead().setLookAtPosition(lookAtSpot);
21632163 } else {
21642164 // 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);
21662167 _myAvatar.getHead().setLookAtPosition(myLookAtFromMouse);
21672168 }
21682169
@@ -2855,8 +2856,9 @@ void Application::displaySide(Camera& whichCamera) { · 686 unmodified lines
28552856 _myAvatar.getHead().setLookAtPosition(_myCamera.getPosition());
28562857 }
28572858 _myAvatar.render(_lookingInMirror->isChecked(), _renderAvatarBalls->isChecked());
2859+ _myAvatar.setDisplayingLookatVectors(_renderLookatOn->isChecked());
28582860
2859− if (_renderLookatIndicatorOn->isChecked() && _isLookingAtOtherAvatar) {
2861+ if (_renderLookatIndicatorOn->isChecked()) {
28602862 renderLookatIndicator(_lookatOtherPosition, whichCamera);
28612863 }
28622864 }

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