Query Filter
data class QueryFilter(val categoryBits: ULong = B2_DEFAULT_CATEGORY_BITS, val maskBits: ULong = B2_DEFAULT_MASK_BITS)
Filter for world queries (raycasts, overlap tests, etc.).
Works similarly to shape filters: a query will only detect shapes where (query.maskBits & shape.categoryBits) != 0.
Parameters
category Bits
The collision category bits of this query
mask Bits
The collision mask bits (which categories to detect)