摘要: cocoa2d-x camera类中 setEyeXYZ(0,0,0.1);setCenterXYZ(0,0,0);setUpXYZ(0,1,0);对应gluLookAt(eyex,eyey,eyez,centerx,centery,centerz,upx,upy,upz);。要移动相机,并不会发生错乱 需要把观察点和被观察点的做相同的移动即在 touchMove事件中 计算出偏移量 x,y cx-=x; cy-=y; this->getCamera()->setEyeXYZ(cx,cy,0.1); this->getCamera()->setCenterXYZ(cx, 阅读全文
posted @ 2013-02-22 16:34 U_探索 阅读(425) 评论(0) 推荐(0) 编辑