title: How to make border for a scene in SpriteKit
body: <p>I am trying to make border for the two sides in a scene but there is some kind of error the here is the code i used</p>
  
  <pre><code>let leftEdge : SKNode = SKNode()
              leftEdge.physicsBody = SKPhysicsBody(edgeFromPoint: CGPointZero, toPoint: CGPointMake(0.0, self.size.height + 100))
  
              leftEdge.position = CGPointZero;
  
              self.addChild(leftEdge)
  
              let rightEdge : SKNode = SKNode()
              rightEdge.physicsBody = SKPhysicsBody(edgeFromPoint: CGPointZero, toPoint: CGPointMake(0.0, self.size.height + 100))
              rightEdge.position = CGPointMake(self.size.width, 0.0);
  
              self.addChild(rightEdge)
  </code></pre>
  
  <p>but the top border and bottom border get the borders and the two sides its seems like they have border outside the the scene cause i shoot object toward them it goes out of the scene and get back so the question how i make borders only for the two sides the left and the right</p>