From 120c8350043ee8b756a98eaef8085ce41e4ebecb Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 22 May 2013 19:46:33 -0700 Subject: [PATCH] fix head mouse --- interface/src/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 56145e0154..a66b56b809 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1365,7 +1365,7 @@ void Application::updateAvatar(float deltaTime) { const float VERTICAL_PIXELS_PER_DEGREE = 1800.f / 30.f; if (powf(measuredYawRate * measuredYawRate + measuredPitchRate * measuredPitchRate, 0.5) > MIN_MOUSE_RATE) { - _headMouseX += measuredYawRate * HORIZONTAL_PIXELS_PER_DEGREE * deltaTime; + _headMouseX -= measuredYawRate * HORIZONTAL_PIXELS_PER_DEGREE * deltaTime; _headMouseY -= measuredPitchRate * VERTICAL_PIXELS_PER_DEGREE * deltaTime; } _headMouseX = max(_headMouseX, 0);