头部倾斜位置 ARKit - iOS

Head tilt position ARKit - iOS

有没有办法使用 ARKit 确定头部位置是向左倾斜还是向右倾斜,甚至居中。我们可以使用 ARFaceAnchorleftEyeTransform & rightEyeTransform 来找到用户头部的倾斜位置吗?有没有更好的方法来找到这个?我是 ARKit 和 SceneKit 世界的初学者,如果我的问题不清楚,请原谅。

documentation 状态

The inherited transform property describes the face’s current position and orientation in world coordinates; that is, in a coordinate space relative to that specified by the worldAlignment property of the session configuration.

因此,如果您使用 ARWorldAlignmentGravityARWorldAlignmentGravityAndHeading(« 坐标系的 y 轴平行于重力 »),您可以确定头部是否倾斜。