Instance Property

contactDelegate

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

Declaration

@property(atomic, weak) id<SCNPhysicsContactDelegate> contactDelegate;

Discussion

A contact is created when two physics bodies overlap and one of the physics bodies has a collisionBitMask property that overlaps with the other body’s categoryBitMask property.

See Also

Detecting Contacts Between Physics Bodies

- contactTestBetweenBody:andBody:options:

Checks for contacts between two physics bodies.

- contactTestWithBody:options:

Checks for contacts between one physics body and any other bodies in the physics world.