Merge pull request #2791 from AndrewMeadows/thermonuclear

fix avatar motor to point in direction of camera
This commit is contained in:
Philip Rosedale 2014-05-05 22:10:13 -07:00
commit bb20762083

View file

@ -774,7 +774,7 @@ void MyAvatar::applyMotor(float deltaTime) {
glm::vec3 targetVelocity = _motorVelocity;
if (_motionBehaviors & AVATAR_MOTION_MOTOR_USE_LOCAL_FRAME) {
// rotate _motorVelocity into world frame
glm::quat rotation = getOrientation();
glm::quat rotation = getHead()->getCameraOrientation();
targetVelocity = rotation * _motorVelocity;
}