Last active
May 19, 2019 16:38
-
-
Save literalpie/865d54c2a52a3e8673a8893084b78032 to your computer and use it in GitHub Desktop.
for use in part 1 of a literalpie medium post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the box: | |
let cube = SCNBox(width: 10, height: 10, length: 10, chamferRadius: 1.0) | |
let cubeNode = SCNNode(geometry: cube) | |
scene.rootNode.addChildNode(cubeNode) | |
// Create the gesture recognizer: | |
let panRecognizer = UIPanGestureRecognizer(target: self, action: #selector(handlePan(panGesture:))) | |
view.addGestureRecognizer(panRecognizer) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment