Nowhere can I find the answer, I am registering interactions between objects:
Player.physicsBody?.categoryBitMask = PhysicsCategory.Player Player.physicsBody?.collisionBitMask = PhysicsCategory.Border | PhysicsCategory.All | PhysicsCategory.Bod1 In collisionBitMask I have a lot of objects, I try to replace these lines with one variable:
mask = PhysicsCategory.Border | PhysicsCategory.All | PhysicsCategory.Bod1 Player.physicsBody?.collisionBitMask = mask What type should be a variable mask?