trying to change the root transorm update

This commit is contained in:
samcake 2017-11-01 18:14:36 -07:00
parent be74b5c9ed
commit 455f2ad277

View file

@ -728,8 +728,9 @@ void Avatar::simulateAttachments(float deltaTime) {
glm::quat jointRotation; glm::quat jointRotation;
if (attachment.isSoft) { if (attachment.isSoft) {
// soft attachments do not have transform offsets // soft attachments do not have transform offsets
model->setTranslation(getPosition()); // model->setTranslation(getPosition());
model->setRotation(getOrientation() * Quaternions::Y_180); // model->setRotation(getOrientation() * Quaternions::Y_180);
model->setTransformNoUpdateRenderItems(Transform(getOrientation() * Quaternions::Y_180, glm::vec3(1.0), getPosition());
model->simulate(deltaTime); model->simulate(deltaTime);
} else { } else {
if (_skeletonModel->getJointPositionInWorldFrame(jointIndex, jointPosition) && if (_skeletonModel->getJointPositionInWorldFrame(jointIndex, jointPosition) &&