mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
Fix a facingRotation issue for PanelAttachable.
This commit is contained in:
parent
90bfce25e5
commit
4965f1adda
1 changed files with 2 additions and 1 deletions
|
@ -32,8 +32,9 @@ void PanelAttachable::setTransforms(Transform& transform) {
|
|||
transform.setTranslation(getAttachedPanel()->getAnchorPosition());
|
||||
transform.setRotation(getAttachedPanel()->getOffsetRotation());
|
||||
transform.postTranslate(getAttachedPanel()->getOffsetPosition());
|
||||
transform.postRotate(getFacingRotation() * getAttachedPanel()->getFacingRotation());
|
||||
transform.postRotate(getAttachedPanel()->getFacingRotation());
|
||||
transform.postTranslate(getOffsetPosition());
|
||||
transform.postRotate(getFacingRotation());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue