mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
Merge pull request #2791 from AndrewMeadows/thermonuclear
fix avatar motor to point in direction of camera
This commit is contained in:
commit
bb20762083
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue