iOS SpriteKit - collisions and contacts not working as expected [closed]
Sometimes in my SpriteKit programs, my collisions and contacts (using SKPhysicsBody) don't trigger or work as expected. I think I have set up everything I need, but I am still not getting the right interactions. How can I easily check what will collide with what and what bodies are set up to generate contacts? To help diagnose these types of problems, I have written a function that can be called from anywhere and which will analyse the current scene and produce a list of what nodes with collide with which others and which collisions my scene will be notified for. The function is stand-alone