SCNPhysicsContact
Detailed information about a contact between two physics bodies in a scene’s physics simulation.
Declaration
class SCNPhysicsContactOverview
You don’t create SCNPhysicsContact instances directly; SceneKit automatically creates these objects whenever contacts occur.
To receive contact messages, assign your custom class implementing the SCNPhysicsContactDelegate protocol to the contactDelegate property of your scene’s SCNPhysicsWorld obejct. Next, for each physics body in your scene, set the categoryBitMask and collisionBitMask properties to define which interactions should generate contact messages.