title: How to make SKSpriteNode reappear on the opposite side of its SKScene?
body: <p>I have been experimenting with SpriteKit for some time now, and I would appreciate some “best practice” input regarding the movement of my SKSpriteNode within its SKScene’s bounds.</p>
  
  <p>Using the accelerometer, I am applying forces on an SKSpriteNode's PhysicsBody property in order to move the node around the screen in a marble-like fashion. Currently, I set the PhysicsBody of my scene using <code>self.physicsBody = [SKPhysicsBody bodyWithEdgeLoopFromRect:self.frame]</code> so that the marble simply bounces off of my scene's edges.</p>
  
  <p>Instead of bouncing off of my scene's edges, I was hoping that once the marble moved beyond my scene’s bounds (1) it would reappear with the same velocity on the opposite side of my scene (2). I also want this bounds wrapping to occur immediately and in such a way that when any portion of the marble has moved outside of my scene’s bounds (3), that portion will have become visible on the opposite side of the scene (4).</p>
  
  <p>Is it possible to accomplish this while using a single SKSpriteNode and preserving that node’s PhysicsBody?</p>
  
  <p>Thanks in advance!</p>
  
  <p><img src="https://i.stack.imgur.com/WdBo9.png" alt="Desired Marble Movement"></p>