[scenekit/ARkit] Nodeに名前を付け、ポジションを変更
scenekit/ARkitで配置したNodeに名前を付け、後でポジションを変更するには以下のコードで実現する
let planeGeometry = SCNBox(width: 1,
height: 0.01,
length: 1,
chamferRadius: 0)
let planeNode = SCNNode(geometry: planeGeometry)
node.name = "plane"
let node = scene.rootNode.childNode(withName: "plane", recursively: true) node.position = SCNVector3Make(x,y,z)