- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
You specify contact and collision behaviors by defining your own categories for the kinds of bodies your app simulates and setting the
collision properties for each body to determine which kinds of bodies it collides with. Additionally, you can use the
contact property of the physics world to be notified of collisions between bodies.
For more details and example usage, see Defining a Body’s Category and Collisions in the class overview.