iOS Developer Library

Developer

SpriteKit Framework Reference SKPhysicsContactDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

SKPhysicsContactDelegate

An object that implements the SKPhysicsContactDelegate protocol can respond when two physics bodies are in contact with each other in a physics world. To receive contact messages, you set the contactDelegate property of a SKPhysicsWorld object. The delegate is called when a contact starts or ends.