title: Joining two nodes using SKPhysicsJointFixed in SpriteKit
body: <p>I want to create a fixed connection between two nodes using <code>SKPhysicsJointFixed</code>.</p>
  
  <p>Code:</p>
  
  <pre><code>let joint = SKPhysicsJointFixed.joint(withBodyA: bodyA, bodyB: bodyB, anchor: anchor)
  physicsWorld.add(joint)
  </code></pre>
  
  <p>Before (without joint):</p>
  
  <p><a href="https://i.stack.imgur.com/m8X9q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m8X9q.png" alt="enter image description here"></a></p>
  
  <p>After (using code above):</p>
  
  <p><a href="https://i.stack.imgur.com/jLPTZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jLPTZ.png" alt="enter image description here"></a></p>
  
  <p>It seems that I’ve calculated everything correct since the line in the middle clearly shows the connection I wanted to create. However there’s now a second line, pointing to the far left and affecting (?) the elements physical behavior.</p>
  
  <p><strong>How would I connect these two nodes instead / what am I missing here?</strong></p>