且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

3D旋转X轴有问题

更新时间:2022-05-02 02:49:49

我有同样的问题。其发生becouse旋转前两个图像中的同一平面内放置,但后的图像的转动部分显示平面的后面,并通过另一个覆盖。我的解决办法是拖上另一架飞机的形象之一,所以他们不重叠。

I had the same problem. Its happens becouse before rotation both images lay in the same plane, but after rotation part of the image appears behind the plane and covered by another. My solution was to drag one of the images on another plane, so they do not overlap.

grayImage.layer.transform=CATransform3DMakeTranslation(0, 0, -100);

在哪里grayImage你的第二个图像。

Where grayImage your second image.