mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 03:01:52 +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;
|
||||
if (attachment.isSoft) {
|
||||
// soft attachments do not have transform offsets
|
||||
model->setTranslation(getPosition());
|
||||
model->setRotation(getOrientation() * Quaternions::Y_180);
|
||||
// model->setTranslation(getPosition());
|
||||
// model->setRotation(getOrientation() * Quaternions::Y_180);
|
||||
model->setTransformNoUpdateRenderItems(Transform(getOrientation() * Quaternions::Y_180, glm::vec3(1.0), getPosition());
|
||||
model->simulate(deltaTime);
|
||||
} else {
|
||||
if (_skeletonModel->getJointPositionInWorldFrame(jointIndex, jointPosition) &&
|
||||
|
|
Loading…
Reference in a new issue