History

Oculus will work with touch look (hopefully)

Philip Rosedale committed 13 years ago

Commit 4e89c671 parent d2dd41b1 file · +2 −2Browse files

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

Unified · Split

interface/src/Application.cpp+2−2
@@ -2056,8 +2056,8 @@ void Application::updateAvatar(float deltaTime) { · 2055 unmodified lines
20562056 float yaw, pitch, roll;
20572057 OculusManager::getEulerAngles(yaw, pitch, roll);
20582058
2059− _myAvatar.getHead().setYaw(yaw);
2060− _myAvatar.getHead().setPitch(pitch);
2059+ _myAvatar.getHead().setYaw(yaw + _yawFromTouch);
2060+ _myAvatar.getHead().setPitch(pitch + _pitchFromTouch);
20612061 _myAvatar.getHead().setRoll(roll);
20622062 }
20632063

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