|

楼主 |
发表于 2013-12-5 10:13:27
|
显示全部楼层
matrix = osg::Matrix::rotate(osg: egreesToRadians(-90.0), 1, 0, 0) *
osg::Matrix::rotate(osg::DegreesToRadians(30.0), 0, 0, 1) *
osg::Matrix::translate(position);
transformNode->setMatrix(matrix );
这样操作后,发现在XOY平面的模型并没有按自身中心旋转呢 |
|