Node add Test1

root_group->addChild(node22);
osg::Vec3f vec3f1 = node22->getBound().center();
osg::NodePathList nodePAthList1 = node22->getParentalNodePaths();
osg::Vec3 point3 = vec3f1 * osg::computeLocalToWorld(nodePAthList1[0]);
qDebug() << "index_node1 point3 " << " x:" << point3.x() << " y:" << point3.y() << " z:" << point3.z();

posted @ 2019-11-06 21:41  西北逍遥  阅读(207)  评论(0编辑  收藏  举报