Protocol

SCNPhysicsContactDelegate

Methods you can implement to respond when a contact or collision occurs between two physics bodies in a scene.

Declaration

@protocol SCNPhysicsContactDelegate

Overview

To receive contact messages, you set the contactDelegate property of an SCNPhysicsWorld object. SceneKit calls your delegate methods when a contact begins, when information about the contact changes, and when the contact ends.

Topics

Responding to Contact Events

- physicsWorld:didBeginContact:

Tells the delegate that two bodies have come into contact.

- physicsWorld:didUpdateContact:

Tells the delegate that new information is available about an ongoing contact.

- physicsWorld:didEndContact:

Tells the delegate that a contact has ended.

Relationships

Inherits From

See Also

Collision and Contact Detection

SCNPhysicsContact

Detailed information about a contact between two physics bodies in a scene’s physics simulation.