title: Detect Sprite Collision without bouncing off in SpriteKit
body: <p>I am new to coding with SpriteKit / Swift and have the following problem:
  A character is supposed to collect coins by jumping into them. There is no problem in detecting the collision and getting rid of the collected coin but my character bounces of the coin before it disappears.</p>
  
  <p>The character is supposed to fly through the coin and collect it on the way.</p>
  
  <pre><code>let playerCategory: UInt32 = 0x1 &lt;&lt; 0
  let coinCategory: UInt32 = 0x1 &lt;&lt; 1
  </code></pre>
  
  <hr>
  
  <pre><code>player = SKSpriteNode(texture: playerTexture)
  player.physicsBody = SKPhysicsBody(circleOfRadius: player.size.height / 2)
  player.physicsBody?.dynamic = true
  player.physicsBody?.allowsRotation = false
  player.physicsBody?.categoryBitMask = playerCategory
  player.physicsBody?.contactTestBitMask = coinCategory
  
  var coin:SKSpriteNode = SKSpriteNode(texture: coinTexture)
  coin.physicsBody = SKPhysicsBody(circleOfRadius: coin.size.height / 2)
  coin.physicsBody?.dynamic = false
  coin.physicsBody?.allowsRotation = false
  coin.physicsBody?.categoryBitMask = coinCategory
  coin.physicsBody?.contactTestBitMask = playerCategory
  </code></pre>
  
  <hr>
  
  <pre><code>func playerDidCollideWithCoin(player:SKSpriteNode, thisCoin:SKSpriteNode) {
      thisCoin.removeFromParent()
      coinsCollected++
  }
  </code></pre>
  
  <p>Collision detection works fine like this but as I said, how can I avoid the bumping of and replace it with a "flying through"?</p>
  
  <p>I'm using Xcode 6 Beta 7</p>
  
  <p>Thanks in advance!</p>
  
  <p><strong>Solution in the comment below ;)</strong></p>