|
发表于 2009-3-16 22:36:56
|
显示全部楼层
osg::Matrixd CSouth::getMatrix(void) const //得到矩阵,这是标准接口,用于控制场景
{
//得到旋转后的矩阵,其实也就是视口矩阵,用此控制场景
osg::Matrixd mat;
mat.makeRotate(
m_vRotation._v[0],osg::Vec3(1.0f,0.0f,0.0f),
m_vRotation._v[1],osg::Vec3(0.0f,1.0f,0.0f),
m_vRotation._v[2],osg::Vec3(0.0f,0.0f,1.0f));
return mat * osg::Matrixd::translate(m_vPosition);
} |
|