How do I get two things to hit each other and then remove one from the scene? <p>I have four colored bars aligned horizontally. I also have some of the exact colors falling from the top of the screen which need to be matched with the bars at the bottom and then removed from the scene on contact. (If falling yellow bar hits bottom yellow bar, remove falling yellow bar from the scene) So, should I have eight different cases for each node in an enum instead of four? This is what it looks like now:</p> <pre><code>enum Bodies: UInt32 { case blueBar = 1 case redBar = 2 case yellowBar = 4 case greenBar = 8 } </code></pre> <p>Some of them are not doing what they're supposed to which is why I'm asking. Thanks in advance. </p>