How to use the SpriteKit method body(at : CGPoint)?
问题 I have game that during the game your finger moves around and should avoid hitting some obstacles. I know how to use collision but I recently heard that there is a funtion called the body(at : point) . I should say that I have masked my obstacles. Because of that I can't use the contains(point) function. I really want to use the body(at : point) function otherwise I know how to work with collisions. Some of my code: play_button = self.childNode(withName: "play_button") as! SKSpriteNode for t