How can I create a copy of a node in SceneKit(using swift)? I have read Apple documentation but i didn't figure it out. I tried with clone() method and copy. But none of them gave results(actually nothing happened). Any hints?
Edit
Code is pretty simple. I have added successfully to scene node named ,,shipNode" and I want to make a copy of it. This is how my code looks like:
var life1 = shipNode.clone() as! SCNNode;
life1.position = SCNVector3Make(0, 0, 0);
self.rootNode.addChildNode(life1);