Fix world transform calculation

actorid
Chris Robinson 13 years ago
parent 12f1785882
commit 63e40d6e92

@ -221,6 +221,6 @@ Ogre::Matrix4 Node::getLocalTransform()
Ogre::Matrix4 Node::getWorldTransform()
{
if(parent != NULL)
return getLocalTransform() * parent->getWorldTransform();
return parent->getWorldTransform() * getLocalTransform();
return getLocalTransform();
}

Loading…
Cancel
Save