ARKit 中 x、y 和 z 的 SCNVector3 位置使用哪个测量单位
Which measuring unit is used in SCNVector3 position for x, y and z in ARKit
设position = SCNVector3(x: 0, y: 0, z: -2)
从原点到上述点的测量单位距离是多少
在ARKit
中,测量单位是Meters
。
当您启动 ARKit
应用程序时,worldOrigin 设置为 SCNVector3Zero
,即 (0,0,0)(或在 X、Y、Z 轴相交的图表中) :
ARKit defines a world coordinate space for you to use to place virtual
content and locate detected objects in an AR experience. By default,
this space is based on the initial position and orientation of the
device when the session begins.
一个SCNVector3
就是:
a three-component vector which is used for a variety of purposes, such
as describing node or vertex positions, surface normals, and scale or
translation transforms. The different vector components should be
interpreted based on the context in which the vector is being used.
因此每个部分对应于X、Y和Z值例如:
let position = SCNVector3 (x, y, z)
鉴于你的 position var
你是说你想把物体放在 worldOrigin
的中央并且距离相机 2 米。
希望对您有所帮助...
设position = SCNVector3(x: 0, y: 0, z: -2) 从原点到上述点的测量单位距离是多少
在ARKit
中,测量单位是Meters
。
当您启动 ARKit
应用程序时,worldOrigin 设置为 SCNVector3Zero
,即 (0,0,0)(或在 X、Y、Z 轴相交的图表中) :
ARKit defines a world coordinate space for you to use to place virtual content and locate detected objects in an AR experience. By default, this space is based on the initial position and orientation of the device when the session begins.
一个SCNVector3
就是:
a three-component vector which is used for a variety of purposes, such as describing node or vertex positions, surface normals, and scale or translation transforms. The different vector components should be interpreted based on the context in which the vector is being used.
因此每个部分对应于X、Y和Z值例如:
let position = SCNVector3 (x, y, z)
鉴于你的 position var
你是说你想把物体放在 worldOrigin
的中央并且距离相机 2 米。
希望对您有所帮助...