我发现了很多关于如何从我的相机到目标的角度。但不知怎的,它不起作用......我希望你能在那里帮助我。
我用
计算弧度GLfloat rad = atan2f(cam.z-z, cam.x-x);
其中x和z是我的x,y对象的值。
我想用
旋转对象的modelMatrix _test_modelMatrix = GLKMatrix4MakeTranslation(x, y, z);
_test_lokalMatrix = GLKMatrix4MakeYRotation(rad);
_test_modelMatrix = GLKMatrix4Multiply(_test_modelMatrix, _test_lokalMatrix);
这个对象应该是我认为它被称为的广告牌。一张坐在世界上的照片,一直面对着我。