mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 11:07:07 +02:00
trying to change the root transorm update
This commit is contained in:
parent
be74b5c9ed
commit
455f2ad277
1 changed files with 3 additions and 2 deletions
|
@ -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) &&
|
||||||
|
|
Loading…
Reference in a new issue