categoryBitMask
A mask that defines which categories this field belongs to.
Declaration
var categoryBitMask: UInt32 { get set }Discussion
Every field in a scene can be assigned to up to 32 different categories, each corresponding to a bit in the bit mask. The mask values are not predetermined by Sprite Kit. You define the mask values that are used in your game. The field node’s categoryBitMask property is compared to a physics body’s fieldBitMask property using a logical AND operation. If the result is nonzero, the field is applied to the physics body.
The default value is 0xFFFFFFFF (all bits set).