Easy SpriteKit Contact Detection (Space Shooter Game) Not Wotking Properly
问题 I'm trying to make a simple Space Shooter game. The contact should happen either between the torpedo and the alien or the shuttle and the alien. The problem is that this second contact (shuttle vs. alien) only happens after the first kind of contact has happend (torpedo vs. alien) and further more they're not always precise. This is a struct created outside the class struct PhysicsCategory { static let alien : UInt32 = 1 static let torpedo : UInt32 = 2 static let shuttle : UInt32 = 3 }