A query filter is used to filter query results known as "hits". For example, you may want a ray-cast representing a projectile to hit players and the static environment but not debris.
| Property | Description |
|---|---|
| DefaultCategories | The default categories used. |
| defaultFilter | Get the default query filter that hits everything. See PhysicsQuery.QueryFilter.Everything. |
| DefaultHitCategories | The default hit categories used. |
| DefaultIgnoreFilter | The default ignore filter used. |
| Everything | Get a query filter that is all categories, hits everything and doesn't ignore any objects. |
| Property | Description |
|---|---|
| categories | The categories this query is using. Usually you would only set one bit but multiple are allowed. |
| hitCategories | The categories this query will produce hits with. |
| ignoreFilter | The filter used to ignore items when filtering. |
| Constructor | Description |
|---|---|
| PhysicsQuery.QueryFilter | Create a default filter set as PhysicsQuery.QueryFilter.defaultFilter. |