From d9d6891cc8db1939e710c016fa4f754f12fa7cf3 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Thu, 6 Jun 2013 10:54:28 -0700 Subject: [PATCH] Use the head rotation to adjust the position, too. --- interface/src/Avatar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/src/Avatar.cpp b/interface/src/Avatar.cpp index c468514bb3..b4e770d664 100644 --- a/interface/src/Avatar.cpp +++ b/interface/src/Avatar.cpp @@ -1075,6 +1075,8 @@ void Avatar::updateBodyBalls(float deltaTime) { // copy the head's rotation _bodyBall[BODY_BALL_HEAD_TOP].rotation = _head.getOrientation(); + _bodyBall[BODY_BALL_HEAD_TOP].position = _bodyBall[BODY_BALL_HEAD_BASE].position + + _bodyBall[BODY_BALL_HEAD_TOP].rotation * _skeleton.joint[BODY_BALL_HEAD_TOP].bindPosePosition; } void Avatar::updateArmIKAndConstraints(float deltaTime) {