mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
fix head mouse
This commit is contained in:
parent
d7a1cc6ea8
commit
120c835004
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue