I have been making a game using Sprite Kit and its physics and met this struct in tutorial:
struct PhysicsCategory
{
static let None: UInt32 = 0
static let All: UInt32 = UInt32.max
static let Player: UInt32 = 0b10
static let Obstacle: UInt32 = 0b11
}
Can anyone tell me what means 0b01 etc. and how to make a new constant here?