How to make physics bodies stick to nodes anchor points
问题 I have four squares in the middle of my scene set up with various anchor points. When tapped, they move together and come apart depending on what position: func rotate(angle : CGFloat, animated : Bool) { var rotateAction : SKAction! if animated { rotateAction = SKAction.rotateByAngle(angle, duration: 0.6) } else { rotateAction = SKAction.rotateByAngle(angle, duration: 0) } for node in self.children as! [SKSpriteNode] { node.runAction(rotateAction) } } } The problem I have is that that the