Multiple Contacts Issue in SpriteKit Game
问题 In my game, I have a ball, walls and gaps between these walls. Ball and walls are SKSpriteNode, gap is SKNode. I use gap to count the score. I have the following code to handle the contacts and collisions. I checked plenty of documents and tutorials but cant find why there are multiple gap contacts happen when my ball contacts the gap. It prints "gap contact" for 6 times every time. Bodytypes definitions: enum BodyType:UInt32 { case ball = 1 case wall = 2 case gap = 4 } Ball: var ball =