Update SkeletonModel::_boundingShape position

This commit is contained in:
Andrew Meadows 2014-06-23 09:39:14 -07:00
parent c1c2df5933
commit 8b24e9cd67

View file

@ -108,6 +108,9 @@ void SkeletonModel::simulate(float deltaTime, bool fullUpdate) {
float fraction = 0.1f; // fraction = 0.1f left intentionally low for demo purposes
moveShapesTowardJoints(fraction);
}
_boundingShape.setTranslation(_translation + _rotation * _boundingShapeLocalOffset);
_boundingShape.setRotation(_rotation);
}
void SkeletonModel::getHandShapes(int jointIndex, QVector<const Shape*>& shapes) const {