I am trying to create a demo application by watching WWDC 2017 video.
let planeNode = SCNNode(geometry: imageplane)
sceneView.scene.rootNode.addChildNode(planeNode)
var translation=matrix_identity_float4x4
translation.columns.3.z = -0.1
planeNode.simdTransform = matrix_multiply(currentFrame.camera.transform,
translation)
The above code works fine and displays plane properly. However on tap it changes snapshot's rotation, tried different ways but nothing worked.
Any help will be really appreciated.