dongju.jeong Posted April 6, 2020 Posted April 6, 2020 getNode()->setWorldParent(NodePtr()); Does the unparent method exist as a separate function?
morbid Posted April 6, 2020 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
dongju.jeong Posted April 7, 2020 Author Posted April 7, 2020 thank you. what is diffrent of setParent and setWorldParent?
morbid Posted April 8, 2020 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
Recommended Posts