title: Shooting bullets from SKSpriteNode
body: <p>I try to build 2D - top down game, and I have player (SKSpriteNode) he can move and rotate, and I want to shoot two bullets from him.
  I use this code to shoot:</p>
  
  <pre><code>func setBullet(player: Player, bullet: Int)
  {
      let weaponPosition = scene!.convertPoint(player.weapon.position, fromNode: player)
      var xPos, yPos: CGFloat!
  
      let sinus = sin(player.zRotation)
      let cosinus = cos(player.zRotation)
  
      if bullet == 1
      {
          xPos = converted.x - sinus * player.size.height / 2
          yPos = converted.y + cosinus * player.size.height / 2
      }
      else if bullet == 2
      {
          xPos = weaponPosition.x - sinus * player.size.height / 2
          yPos = weaponPosition.y + cosinus * player.size.height / 2
      }
  
      position = CGPoint(x: xPos, y: yPos)
      physicsBody!.applyImpulse(CGVector(dx: -sinus * normalSpeed, dy: cosinus * normalSpeed))
  }
  </code></pre>
  
  <p>But, i do not know how to correctly set the position...
  I try to make something like this<a href="https://i.stack.imgur.com/MrBW7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MrBW7.png" alt="this"></a>
  (Green dots - this is a bullets).   Can anyone help me please!</p>