title: Adjust SKSpriteNode and SKPhysicsBody with specific image.png or image.jpg
body: <p>I am developing a game with a character with some particular shape, I am creating an <code>SKSpriteNode</code> object with this line:</p>
  
  <pre><code>let rockl:SKSpriteNode = SKSpriteNode(color: UIColor.redColor(), size: CGSize(width: newweight*ancho/16, height: alto/5))
  </code></pre>
  
  <p>I am assigning a physical body with this line:</p>
  
  <pre><code>rockl.physicsBody = SKPhysicsBody(rectangleOfSize: pipeBotton.size)
  </code></pre>
  
  <p>and I am assigning the image with this line:</p>
  
  <pre><code>rockl.texture = SKTexture(imageNamed: "character.png")
  rockl.texture.filteringMode = SKTextureFilteringMode.Nearest
  </code></pre>
  
  <p>But the borders are not the same to the border of the image. how can I adjust the object to the image? or whats is the technique to create a custom shape?</p>