Physics · interface

QueryFilter

Which bodies a query is allowed to see.

Explained in Your first game, Rigid bodies.

interface QueryFilter
import type { QueryFilter } from '@driftengine/physics';

Properties

NameTypeDescription
layeroptionalnumberThe querier's own layer, tested against each body's mask.
maskoptionalnumberWhich layers the querier wants, tested against each body's layer.
ignoreoptionalnumberA body to ignore, usually the one asking.