Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. internal func transition(sourceIn: SCNNode, targetIn: SCNNode){
  2. let cam = bodyScene.rootNode.childNode(withName: "Cam_Neutral", recursively: false)!
  3. let camTarget = bodyScene.rootNode.childNode(withName: "Cam_Neutral_Target", recursively: false)!
  4. /*
  5. let moveSourceIn = SCNAction.move(to: sourceIn.position, duration: 1.0)
  6. moveSourceIn.timingMode = .easeInEaseOut
  7. let moveTargetIn = SCNAction.move(to: targetIn.position, duration: 1.0)
  8. moveTargetIn.timingMode = .easeInEaseOut
  9. cam.runAction(moveSourceIn)
  10. camTarget.runAction(moveTargetIn)
  11. */
  12. cam.position = sourceIn.position
  13. camTarget.position = targetIn.position
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement