|
楼主 |
发表于 2012-12-1 23:15:37
|
显示全部楼层
本帖最后由 allenjiao 于 2012-12-1 23:16 编辑
osg:: Quat new_rotate;
new_rotate2.makeRotate( dx / 3.0f, osg::Vec3(0.0f, 0.0f, 1.0f),
dy / 3.0f, osg::Vec3(1.0f, 0.0f, 0.0f),
0.0f, osg::Vec3(0.0f, 0.0f, 0.0f));
_rotation = _rotation*new_rotate;
改成这样视点移动还是有问题 |
|