A mask that defines which categories of bodies cause intersection notifications with this physics body.
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 3.0+
When two bodies share the same space, each body’s category mask is tested against the other body’s contact mask by performing a logical AND operation. If either comparison results in a nonzero value, an
SKPhysics object is created and passed to the physics world’s delegate. For best performance, only set bits in the contacts mask for interactions you are interested in.
The default value is
0x00000000 (all bits cleared).