Skip to content

Commit

Permalink
Fix order of quaternion multiplication in ofNode
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuketomoto committed May 7, 2018
1 parent 3bdb0cf commit e4e9bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/openFrameworks/3d/ofNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ void ofNode::setGlobalOrientation(const glm::quat& q) {
setOrientation(q);
} else {
auto invParent = glm::inverse(parent->getGlobalTransformMatrix());
auto m44 = q * glm::toQuat(invParent);
auto m44 = glm::toQuat(invParent) * q;
setOrientation(m44);
}
}
Expand Down

0 comments on commit e4e9bfc

Please sign in to comment.