mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 10:54:26 +02:00
Fix LookAtPosition
This commit is contained in:
parent
cb1af4499a
commit
29ff8c09d9
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ void Player::play() {
|
||||||
head->setFinalPitch(eulers.x);
|
head->setFinalPitch(eulers.x);
|
||||||
head->setFinalYaw(eulers.y);
|
head->setFinalYaw(eulers.y);
|
||||||
head->setFinalRoll(eulers.z);
|
head->setFinalRoll(eulers.z);
|
||||||
head->setLookAtPosition(currentFrame.getLookAtPosition());
|
head->setLookAtPosition(context->position + context->orientation * currentFrame.getLookAtPosition());
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "WARNING: Player couldn't find head data.";
|
qDebug() << "WARNING: Player couldn't find head data.";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue