Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -2841,7 +2841,7 @@ void Application::update(float deltaTime) { · 2840 unmodified lines | |||
| 2841 | const float EXPECTED_FRAME_RATE = 60.0f; | 2841 | const float EXPECTED_FRAME_RATE = 60.0f; |
| 2842 | float timeFactor = EXPECTED_FRAME_RATE * deltaTime; | 2842 | float timeFactor = EXPECTED_FRAME_RATE * deltaTime; |
| 2843 | myAvatar->setDriveKeys(PITCH, -1.0f * userInputMapper->getActionState(controller::Action::PITCH) / timeFactor); | 2843 | myAvatar->setDriveKeys(PITCH, -1.0f * userInputMapper->getActionState(controller::Action::PITCH) / timeFactor); |
| 2844 | myAvatar->setDriveKeys(YAW, -1.0f * userInputMapper->getActionState(controller::Action::YAW) / timeFactor); | 2844 | myAvatar->setDriveKeys(YAW, -1.0f * userInputMapper->getActionState(controller::Action::YAW)); |
| 2845 | myAvatar->setDriveKeys(STEP_YAW, -1.0f * userInputMapper->getActionState(controller::Action::STEP_YAW)); | 2845 | myAvatar->setDriveKeys(STEP_YAW, -1.0f * userInputMapper->getActionState(controller::Action::STEP_YAW)); |
| 2846 | } | 2846 | } |
| 2847 | } | 2847 | } |