History

Fix first person camera positioning to correspond to eyelevel. This makes sure the lookatVectors don't seem to point upwards when looking at you.

Mark Peng committed 13 years ago

Commit dd265581 parent 718fa293 files · +7 −2Browse files

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

Unified · Split

interface/src/Application.cpp+1−1
@@ -407,7 +407,7 @@ void Application::paintGL() { · 406 unmodified lines
407407
408408 } else if (_myCamera.getMode() == CAMERA_MODE_FIRST_PERSON) {
409409 _myCamera.setTightness(0.0f); // In first person, camera follows head exactly without delay
410− _myCamera.setTargetPosition(_myAvatar.getUprightHeadPosition());
410+ _myCamera.setTargetPosition(_myAvatar.getUprightEyeLevelPosition());
411411 _myCamera.setTargetRotation(_myAvatar.getHead().getCameraOrientation());
412412
413413 } else if (_myCamera.getMode() == CAMERA_MODE_THIRD_PERSON) {

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