A delegate that is called when two physics bodies come in contact with each other.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Scene
Kit
Declaration
weak var contactDelegate: SCNPhysics Contact Delegate? { get set }
Discussion
A contact is created when two physics bodies overlap and one of the physics bodies has a collision
property that overlaps with the other body’s category
property.