Creating a box with SceneKit and ARKit

Viewed 5179

I am trying to create a primitive with SceneKit and ARKit. For whatever reason, it is not working.

let box = SCNBox(width: 0.1, height: 0.1, length: 0.1, chamferRadius: 0)

    let node = SCNNode(geometry: box)

    node.position = SCNVector3(0,0,0)

    sceneView.scene.rootNode.addChildNode(node)

Do I need to take in the camera coordinates as well?

2 Answers
Related