Got the sign backwards.

This commit is contained in:
Andrzej Kapolka 2014-01-17 17:04:22 -08:00
parent 765f98fadc
commit 470b83a55b

View file

@ -483,7 +483,7 @@ void MyAvatar::orbit(const glm::vec3& position, int deltaX, int deltaY) {
// then vertically // then vertically
float oldMousePitch = _head.getMousePitch(); 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); rotation = glm::angleAxis(_head.getMousePitch() - oldMousePitch, orientation * IDENTITY_RIGHT);
setPosition(position + rotation * (getPosition() - position)); setPosition(position + rotation * (getPosition() - position));
} }