In the didBegin
function didBegin
one of the nodes has a bitmask of category 4294967295. However, this category is never assigned to any node.
Below are all used bit masks:
struct PhysicsCategory { static let None : UInt32 = 0 static let All : UInt32 = UInt32.max static let Player : UInt32 = 0b1
I repeat, the category All
, which corresponds to 4294967295, is never assigned to any node. So why is there a physical body with this bit mask? Is this category bitmask never implicitly assigned to a physical body?
func didBegin(_ contact: SKPhysicsContact) { print("Collision was detected: \(contact.bodyA.categoryBitMask). \(contact.bodyB.categoryBitMask).") }
source share