|
m.makeTranslate(osg::Vec3(400.0f,0.0f,0.0f));
m.makeRotate(90.0f,1.0f,0.0f,0.0f);
m = osg::Matrix::translate(osg::Vec3(40.0f,0.0f,0.0f))*osg::Matrix::rotate(90.0f,1.0f,0.0f,0.0f );
这两句实现的功能有什么不同?当我的节点不是拷贝来的,都可以,当我的节点是通过拷贝函数node->clone()拷贝得到,则红色代码仅仅实现了旋转,而用蓝色代码既实现了平移又实现了旋转? |
|