【发布时间】:2019-04-19 12:49:40
【问题描述】:
我正在尝试使用UIRotationGestureRecognizer 旋转SCNNode 并更改eulerAngles。我在围绕y 和围绕z 轴的旋转之间切换。当我只旋转其中一个时,一切都很好。但是当我旋转两者时出现问题。它不再围绕轴本身旋转,而是随机旋转。
我已经阅读了很多答案,尤其是来自 ARGeo 的这个答案:SCNNode Z-rotation axis stays constant, while X and Y axes change when node is rotated,我了解eulerAngles 和云台锁的问题。
但我不明白如何正确使用orientation ant 那个w 组件。这里有成功使用UIRotationGestureRecognizer 和orientation 而不是eulerAngles 的人吗?
【问题讨论】:
-
在 SO 上找到它。
标签: ios swift scenekit augmented-reality arkit