Instance Property


A delegate that is called when two physics bodies come in contact with each other.


unowned(unsafe) var contactDelegate: SKPhysicsContactDelegate? { get set }


A contact is created when two physics bodies overlap and one of the physics bodies has a contactTestBitMask property that overlaps with the other body’s categoryBitMask property. By default, a physics body’s contactTestBitMask is set to all bits cleared.