Method GetCollisionFilter
GetCollisionFilter()
Get the root level filter that can be used for a quick dismiss of the collision/query. Individual children can have their own collision filters for further filtering. This filter is a union of all child filters.
Declaration
public CollisionFilter GetCollisionFilter()
Returns
| Type | Description |
|---|---|
| CollisionFilter | The root collision filter. |
Implements
GetCollisionFilter(ColliderKey)
Gets the collision filter of the child specified by the collider key.
Declaration
public CollisionFilter GetCollisionFilter(ColliderKey colliderKey)
Parameters
| Type | Name | Description |
|---|---|---|
| ColliderKey | colliderKey | The child collider key. |
Returns
| Type | Description |
|---|---|
| CollisionFilter | The collision filter of the child specified by the collider key. If the key is empty, it will return root filter. If the key is invalid, it will throw an exception. |