dongju.jeong Posted April 6, 2020 Share Posted April 6, 2020 getNode()->setWorldParent(NodePtr()); Does the unparent method exist as a separate function? Link to comment
morbid Posted April 6, 2020 Share Posted April 6, 2020 Hello, Use setParent / setWorldParent for this: node->setParent(NodePtr()); node->setWorldParent(NodePtr()); In 2.10 you can just do this: node->setParent(nullptr); Thanks. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
dongju.jeong Posted April 7, 2020 Author Share Posted April 7, 2020 thank you. what is diffrent of setParent and setWorldParent? Link to comment
morbid Posted April 8, 2020 Share Posted April 8, 2020 Please refer to the documentation for such questions. The difference is in the coordinates: setParent uses parent's coordinates setWorldParent world coordinates Thanks. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts