Physics · interface
QueryFilter
Which bodies a query is allowed to see.
Explained in Your first game, Rigid bodies.
interface QueryFilterimport type { QueryFilter } from '@driftengine/physics';Properties
| Name | Type | Description |
|---|---|---|
layeroptional | number | The querier's own layer, tested against each body's mask. |
maskoptional | number | Which layers the querier wants, tested against each body's layer. |
ignoreoptional | number | A body to ignore, usually the one asking. |