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. This uses both QueryFilter.DefaultCategories and QueryFilter.DefaultHitCategories. |
DefaultHitCategories | The default hit categories used. |
Everything | Get a query filter that is all categories and hit everything. |
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. |
Constructor | Description |
---|---|
PhysicsQuery.QueryFilter | Create a default filter set as QueryFilter.defaultFilter. |