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
3631 + myAvatar->getWorldOrientation() * boomOffset);3631 + myAvatar->getWorldOrientation() * boomOffset);
3632 }3632 }
3633 } else {3633 } else {
3634 glm::quat lookAtOffset = myAvatar->getLookAtOffset();3634 glm::quat lookAtRotation = myAvatar->getLookAtRotation();
3635 if (mode == CAMERA_MODE_SELFIE) {3635 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);
3637 }3637 }
3638 _myCamera.setPosition(myAvatar->getDefaultEyePosition()3638 _myCamera.setPosition(myAvatar->getDefaultEyePosition()
3639 + lookAtOffset * boomOffset);3639 + lookAtRotation * boomOffset);
3640 _myCamera.lookAt(myAvatar->getDefaultEyePosition());3640 _myCamera.lookAt(myAvatar->getDefaultEyePosition());
3641 }3641 }
3642 }3642 }

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