Fix a facingRotation issue for PanelAttachable.

This commit is contained in:
Zander Otavka 2015-08-05 09:20:55 -07:00
parent 90bfce25e5
commit 4965f1adda

View file

@ -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());
}
}