Use the head rotation to adjust the position, too.

This commit is contained in:
Andrzej Kapolka 2013-06-06 10:54:28 -07:00
parent 27717bfcd4
commit d9d6891cc8

View file

@ -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) {