Skip to content

Instantly share code, notes, and snippets.

@factoryhr
Created June 1, 2020 08:46
Show Gist options
  • Save factoryhr/c328e08c850dd6c4e968ef1243db7ef5 to your computer and use it in GitHub Desktop.
Save factoryhr/c328e08c850dd6c4e968ef1243db7ef5 to your computer and use it in GitHub Desktop.
func createNode(){
let boxGeometry = SCNBox(width: 0.2, height: 0.2, length: 0.2, chamferRadius: 0)
let node = SCNNode(geometry: boxGeometry)
sceneView.scene.rootNode.addChildNode(node)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment