History

Add jdoc to camera modes and fix variable namings

luiscuenca committed 7 years ago

Commit 365aa1b1 parent 279e25c4 files · +33 −21Browse files

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

Unified · Split

interface/src/Application.cpp+3−3
@@ -3631,12 +3631,12 @@ void Application::updateCamera(RenderArgs& renderArgs, float deltaTime) { · 3630 unmodified lines
36313631 + myAvatar->getWorldOrientation() * boomOffset);
36323632 }
36333633 } else {
3634− glm::quat lookAtOffset = myAvatar->getLookAtOffset();
3634+ glm::quat lookAtRotation = myAvatar->getLookAtRotation();
36353635 if (mode == CAMERA_MODE_SELFIE) {
3636− lookAtOffset = lookAtOffset * glm::angleAxis(PI, myAvatar->getWorldOrientation() * Vectors::UP);
3636+ lookAtRotation = lookAtRotation * glm::angleAxis(PI, myAvatar->getWorldOrientation() * Vectors::UP);
36373637 }
36383638 _myCamera.setPosition(myAvatar->getDefaultEyePosition()
3639− + lookAtOffset * boomOffset);
3639+ + lookAtRotation * boomOffset);
36403640 _myCamera.lookAt(myAvatar->getDefaultEyePosition());
36413641 }
36423642 }

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