0

我需要在 opengles GLkit 中旋转图像并将其恢复到 GLkit 中的原始位置。

rotation += 5;
_modelViewMatrix = GLKMatrix4Rotate( _modelViewMatrix, GLKMathDegreesToRadians(5), 1, 0, 0);
_modelViewMatrix = GLKMatrix4Rotate( _modelViewMatrix, GLKMathDegreesToRadians(rotation), 1,0,0);

我需要将它在 x 轴上移动一定量并从它开始的地方回到它的原始位置。我该怎么做?

4

0 回答 0