Structure

CollisionFilter

A set of masks that determine whether entities can collide during simulations.

Declaration

struct CollisionFilter

Topics

Creating a Collision Filter

static let `default`: CollisionFilter

The default collision filter.

static let sensor: CollisionFilter

A collision filter for an entity that collides with everything.

Customizing Groups

var group: CollisionGroup

The collision group or groups, stored as a bit mask, to which the entity belongs.

var mask: CollisionGroup

The collision group or groups, stored as a bitmask, with which the entity can collide.

struct CollisionGroup

A bitmask used to define the collision group to which an entity belongs, and with which it can collide.

Comparing Collision Filters

static func == (CollisionFilter, CollisionFilter) -> Bool

Indicates whether two collision filters are equal.

static func != (CollisionFilter, CollisionFilter) -> Bool

Indicates whether two collision filters are not equal.

Relationships

Conforms To

See Also

Filtering Collisions

var filter: CollisionFilter

The collision filter used to segregate entities into different collision groups.