Type Property

collisionBitMask

The key for selecting which categories of physics bodies that SceneKit should test for contacts.

Declaration

static let collisionBitMask: SCNPhysicsWorld.TestOption

Discussion

The value for this key is an NSNumber object containing an NSUInteger value. SceneKit tests for contacts only with physics bodies whose categoryBitMask property overlaps with this bit mask. The default value is all, specifying that searches should test all physics bodies regardless of their category.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software