mirror of https://github.com/axmolengine/axmol.git
Fixes NodeToWorld
Multiplication was in the incorrect order
This commit is contained in:
parent
e526a5bd34
commit
a7b33e3ec3
|
@ -1256,7 +1256,7 @@ kmMat4 Node::getNodeToWorldTransform() const
|
||||||
kmMat4 t = this->getNodeToParentTransform();
|
kmMat4 t = this->getNodeToParentTransform();
|
||||||
|
|
||||||
for (Node *p = _parent; p != nullptr; p = p->getParent())
|
for (Node *p = _parent; p != nullptr; p = p->getParent())
|
||||||
kmMat4Multiply(&t, &t, &p->getNodeToParentTransform());
|
kmMat4Multiply(&t, &p->getNodeToParentTransform(), &t);
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue