SCNPlane y position

At https://developer.apple.com/documentation/arkit/arscnview/providing_3d_virtual_content_with_scenekit

there is the line of code:

planeNode.position = SCNVector3Make(planeAnchor.center.x, 0, planeAnchor.center.z)


Why is the y coordinate 0? Why not use the y coordinate of the anchor?

Answered by DTS Engineer in 410040022

As noted here (https://developer.apple.com/documentation/arkit/arplaneanchor/2882056-center):


"Although the type of this property is

vector_float3
, a plane anchor is always two-dimensional, and is always positioned in only the x and z directions relative to its
transform
position. (That is, the y-component of this vector is always zero.)"
Accepted Answer

As noted here (https://developer.apple.com/documentation/arkit/arplaneanchor/2882056-center):


"Although the type of this property is

vector_float3
, a plane anchor is always two-dimensional, and is always positioned in only the x and z directions relative to its
transform
position. (That is, the y-component of this vector is always zero.)"
SCNPlane y position
 
 
Q