How to Use SceneKit to get this effect , i using the NSConstraint to develop but no success : Need some help or minds , how to Use SceneKit to get this effect , i using the NSConstraint  to develop but no success..[enter image description here][1]

 
  [1]: https://i.stack.imgur.com/MenMF.gif