History

Merge branch 'master' of github.com:worklist/hifi into packet-versions

Stephen Birarda committed 13 years ago

Commit 64887f22 parents e1081ab 2f38f9a1 file · +3 −2Browse files

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

Unified · Split

interface/src/Application.cpp+3−2
@@ -2031,10 +2031,11 @@ void Application::updateAvatar(float deltaTime) { · 2030 unmodified lines
20312031 _headMouseY = max(_headMouseY, 0);
20322032 _headMouseY = min(_headMouseY, _glWidget->height());
20332033
2034− // Set lookAtPosition if an avatar is at the center of the screen
2034+ const float MIDPOINT_OF_SCREEN = 0.5;
20352035
2036+ // Set lookAtPosition if an avatar is at the center of the screen
20362037 glm::vec3 screenCenterRayOrigin, screenCenterRayDirection;
2037− _viewFrustum.computePickRay(0.5, 0.5, screenCenterRayOrigin, screenCenterRayDirection);
2038+ _viewFrustum.computePickRay(MIDPOINT_OF_SCREEN, MIDPOINT_OF_SCREEN, screenCenterRayOrigin, screenCenterRayDirection);
20382039
20392040 glm::vec3 eyePosition;
20402041 if (isLookingAtOtherAvatar(screenCenterRayOrigin, screenCenterRayDirection, eyePosition)) {

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