mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
Got the sign backwards.
This commit is contained in:
parent
765f98fadc
commit
470b83a55b
1 changed files with 1 additions and 1 deletions
|
@ -483,7 +483,7 @@ void MyAvatar::orbit(const glm::vec3& position, int deltaX, int deltaY) {
|
|||
|
||||
// then vertically
|
||||
float oldMousePitch = _head.getMousePitch();
|
||||
_head.setMousePitch(oldMousePitch + deltaY * ANGULAR_SCALE);
|
||||
_head.setMousePitch(oldMousePitch + deltaY * -ANGULAR_SCALE);
|
||||
rotation = glm::angleAxis(_head.getMousePitch() - oldMousePitch, orientation * IDENTITY_RIGHT);
|
||||
setPosition(position + rotation * (getPosition() - position));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue