Remove seemingly uneeded rotation, see #2345. Not sure I understand what is going on
This commit is contained in:
parent
e1a6478038
commit
d63837260f
@ -218,7 +218,8 @@ void TrackObject::init(const XMLNode &xml_node, scene::ISceneNode* parent,
|
|||||||
core::matrix4 absTransform = node->getAbsoluteTransformation();
|
core::matrix4 absTransform = node->getAbsoluteTransformation();
|
||||||
node->setParent(irr_driver->getSceneManager()->getRootSceneNode());
|
node->setParent(irr_driver->getSceneManager()->getRootSceneNode());
|
||||||
node->setPosition(absTransform.getTranslation());
|
node->setPosition(absTransform.getTranslation());
|
||||||
node->setRotation(absTransform.getRotationDegrees());
|
// Doesn't seem necessary to set rotation here, TODO: not sure why
|
||||||
|
//node->setRotation(absTransform.getRotationDegrees());
|
||||||
node->setScale(absTransform.getScale());
|
node->setScale(absTransform.getScale());
|
||||||
is_movable = true;
|
is_movable = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user