node.physicsBody.joints downcasting error
The following code gives an error - it appears the physics joints array have the class PKPhysicsJoint. Anyone have any ideas how I can iterate through the joints in Swift? The documentation does say that physicsBody.joints should return an array of SKPhysicsJoint. import SpriteKit let scene = SKScene(size: CGSize(width: 200, height: 200)) let nodeA = SKNode() let nodeB = SKNode() nodeA.physicsBody = SKPhysicsBody(circleOfRadius: 20) nodeB.physicsBody = SKPhysicsBody(circleOfRadius: 20) scene.addChild(nodeA) scene.addChild(nodeB) let joint = SKPhysicsJointFixed.jointWithBodyA(nodeA.physicsBody,