title: Center a specific point in an SKShapeNode in Spritekit
body: <p>I am building a 2D map editor on iPad for a pinball game. To implement a zoom in/out, I decided to scale the pinball table and it's content, which works very well. The problem is that I would like the center of the zoom (which is the center of the scene) to stay in the center.</p>
  
  <p>Right now, if I scale the table up (zoom in), the table scales up and takes all the space in the scene, but the center have nothing to do with the center at the start of the zoom. (see picture below)</p>
  
  <p><a href="https://i.stack.imgur.com/xMzqs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xMzqs.png" alt="enter image description here"></a></p>
  
  <p>As another exemple, if I am zoomed in (the table is scaled up) and I see a part of the table (let's say the right border) and I zoom out, the table will be scaled down from it's center and I will not see the table at all in the scene, even if I had a part of the table in the center of the scene. This is not use friendly and I would like to always have the same portion of the table in the center. </p>
  
  <p>Thank you anyway for your help. I am a bit lost on this one.</p>
  
  <p>PS: I am using a UIPinchGesture to scale my SKShakeNode that is my pinball table.</p>