Improve moving objects in library behavior.
This commit is contained in:
parent
3f8bff33f3
commit
1f5dd2fff3
@ -103,7 +103,7 @@ void TrackObjectPresentationSceneNode::move(const core::vector3df& xyz, const co
|
||||
if (m_node->getParent() != NULL)
|
||||
{
|
||||
scene::ISceneNode* parent = m_node->getParent();
|
||||
m_node->setPosition(xyz - parent->getAbsolutePosition());
|
||||
m_node->setPosition((xyz - parent->getAbsolutePosition()) / parent->getScale());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user