QueryFilter

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

categoryBits

The collision category bits of this query

maskBits

The collision mask bits (which categories to detect)

Constructors

Link copied to clipboard
constructor(categoryBits: ULong = B2_DEFAULT_CATEGORY_BITS, maskBits: ULong = B2_DEFAULT_MASK_BITS)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard