mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 12:13:40 +02:00
New plan: let's get the skeleton working first, then work on the face.
This commit is contained in:
parent
cd4b88acaa
commit
02a21ae9c0
1 changed files with 1 additions and 2 deletions
|
@ -30,8 +30,7 @@ void FaceModel::simulate(float deltaTime) {
|
|||
setTranslation(neckPosition);
|
||||
glm::quat neckRotation;
|
||||
if (!owningAvatar->getSkeletonModel().getNeckRotation(neckRotation)) {
|
||||
neckRotation = owningAvatar->getSkeleton().joint[AVATAR_JOINT_NECK_BASE].absoluteRotation *
|
||||
glm::angleAxis(180.0f, 0.0f, 1.0f, 0.0f);
|
||||
neckRotation = owningAvatar->getSkeleton().joint[AVATAR_JOINT_NECK_BASE].absoluteRotation;
|
||||
}
|
||||
setRotation(neckRotation);
|
||||
const float MODEL_SCALE = 0.0006f;
|
||||
|
|
Loading…
Reference in a new issue