History

Merge pull request #6314 from jherico/homer

Fixing step yaw to move by consistent amounts, be 'tappable'

samcake committed 11 years ago

Commit 00797b42 parents 86b8522 20d10354 files · +45 −14Browse files

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

Unified · Split

interface/src/Application.cpp+1−1
@@ -2794,7 +2794,7 @@ void Application::update(float deltaTime) { · 2793 unmodified lines
2794 float timeFactor = EXPECTED_FRAME_RATE * deltaTime;2794 float timeFactor = EXPECTED_FRAME_RATE * deltaTime;
2795 myAvatar->setDriveKeys(PITCH, -1.0f * userInputMapper->getActionState(controller::Action::PITCH) / timeFactor);2795 myAvatar->setDriveKeys(PITCH, -1.0f * userInputMapper->getActionState(controller::Action::PITCH) / timeFactor);
2796 myAvatar->setDriveKeys(YAW, -1.0f * userInputMapper->getActionState(controller::Action::YAW) / timeFactor);2796 myAvatar->setDriveKeys(YAW, -1.0f * userInputMapper->getActionState(controller::Action::YAW) / timeFactor);
2797 myAvatar->setDriveKeys(STEP_YAW, -1.0f * userInputMapper->getActionState(controller::Action::STEP_YAW) / timeFactor);2797 myAvatar->setDriveKeys(STEP_YAW, -1.0f * userInputMapper->getActionState(controller::Action::STEP_YAW));
2798 }2798 }
2799 }2799 }
2800 myAvatar->setDriveKeys(ZOOM, userInputMapper->getActionState(controller::Action::TRANSLATE_CAMERA_Z));2800 myAvatar->setDriveKeys(ZOOM, userInputMapper->getActionState(controller::Action::TRANSLATE_CAMERA_Z));